Rocket.Chat.RealTime.API.RxJS icon indicating copy to clipboard operation
Rocket.Chat.RealTime.API.RxJS copied to clipboard

Method getSubscription stream-notify-logged add fields

Open AgustinNG opened this issue 4 years ago • 2 comments

I see that methods accept params but the subscription stream-notify-logged method user-status requires field field, I don't see that it can be used.

https://rocket.chat/docs/developer-guides/realtime-api/subscriptions/stream-notify-logged/

Captura de pantalla 2020-04-28 a las 12 15 34

AgustinNG avatar Apr 28 '20 10:04 AgustinNG

@AgustinNG , @inf3cti0n95 could you please provide an example how you get the subscription to work?

I can perfectly fine send a message via

image

and get

{
  "msg": "ready",
  "subs": [
    "1597426365282"
  ]
}

but strangely when trying the same with getSubscription(...).subscribe()

image

it errors out since a string is required as the param ????

Exception from sub stream-livechat-room id 30ca7a52-5923-49bf-baa6-e49ffd999fb0 Error: Match error: Expected string, got object
    at check (packages/check/match.js:36:17)
    at Streamer._publish (packages/rocketchat:streamer/server/server.js:283:3)

chris-aeviator avatar Aug 14 '20 17:08 chris-aeviator

I got the same issue here

julienchabanon avatar Jan 27 '22 00:01 julienchabanon