Open alb-3 opened 3 years ago
Hey there,
Thanks for reporting this.
I guess this is a duplicate of the other issue you mentioned. I'll close that issue in that case and get this checked as soon as possible.
any updates on this? i am facing basically the same issue (trying with python websockets), and with other streams as well.
any updates, I have the same issue, it is intermittent
I was also facing this issue in JS. but got typing notification by passing below object. You need to use 'user-activity' in place of 'typing' ( and hopefully for 'deleteMessage' as I didn't tried' deleteMessage' yet). I think they either forget to update or got some other issue. let streamNotifyObj = { msg:'sub', id:String(messagesCount++), name:'stream-notify-room', params:[ 'room-id/user-activity', ], };
reference : #22817
Description
Hi, I found a bug in the subscription to
stream-notify-room
in realtime api.I followed the instruction to subscribe to
typing
(a event ofstream-notify-room
) but instead of receiveready
answer I receivenosub
.I used ddp library that provides the unique
subscription-id
. The others parameters are in the format specified by the documentation ( https://developer.rocket.chat/api/realtime-api/subscriptions/stream-notify-room)Steps to reproduce:
creation of ddp client using ddp lib
connection to server using ddp client
login with ddp client using ddp-login lib
register the guest (call to
livechat:registerGuest
)send the first message that creates the room (call to
sendMessageLivechat
)subscription:
ddpClient.subscribe("stream-notify-room", [roomId+"/typing", false], () => { console.log("subscription"); } );
listen to new message
Expected behavior:
receive
{ msg: 'ready', subs: [ 'a number' ] }
Actual behavior:
receive
{ msg: 'nosub', id: 'a number' }
Server Setup Information:
Version of Rocket.Chat Server: 3.17.1
Operating System: Ubuntu 20.04.2
Deployment Method: snap
Number of Running Instances: 1
DB Replicaset Oplog: Enabled
NodeJS Version: 12.22.1
MongoDB Version: 3.6.14
Proxy: nginx
Firewalls involved: none