[BUG] Roblox Real-Time Chat - Some events may not fire
Opened this issue · 1 comments
Describe the bug
I only have tested the onNewMessage event emitter, so I'm not sure if this is also happening on other event emitters.
In some cases, onNewMessage in Chat won't fire, I have discovered that Roblox is changing the way the real-time chat works in their websockets.
To Reproduce
Steps to reproduce the behavior:
- Make a group conversation (this is most likely going to occur in)
- Log info on onNewMessage event emitter
- Send a message from the other participant in the group conversation.
- See console, won't log new message
Expected behavior
onNewMessage to fire when a message is received, including group conversations.
Screenshots
New chat system in websocket when message received:
Source code:
I recommend ignoring the legacy types, and to change to the new ones, by changing the checks to match the new ones instead of adding ||
whether if legacy or new.
So is the type now a number instead of a string? Is the other data coming down as expected?
If you understand the intricacies of the behaviour could you open a PR? I'm not too familiar with chats & notifs personally.