You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's an example exchange with wss://open.rocket.chat/websocket:
<== '{"server_id":"0"}'
==> '{"msg":"connect","version":"1","support":["1"]}'
<== '{"msg":"ping"}'
==> '{"msg":"pong"}'
<== '{"msg":"connected","session":"330328f0-8eb3-11ef-9bce-f1103112ae1f"}'
==> '{"msg":"method","method":"login","id":"0","params":[{"resume":"<snip>"}]}'
<== '{"msg":"result","id":"0","result":{"id":"ga33SsqjhgYSxHQrc","token":"<snip>","type":"resume"}}'
==> '{"msg":"method","method":"getUserRoles","id":"1","params":[]}'
<== '{"msg":"updated","methods":["0"]}'
failed to process rocketchat message: unknown message type 'updated', skipping
<== '{"msg":"result","id":"1","result":{}}'
<== '{"msg":"updated","methods":["1"]}'
failed to process rocketchat message: unknown message type 'updated', skipping
==> '{"msg":"method","method":"checkUsernameAvailability","id":"2","params":["henry103433"]}'
<== '{"msg":"result","id":"2","result":{}}'
<== '{"msg":"updated","methods":["2"]}'
failed to process rocketchat message: unknown message type 'updated', skipping
==> '{"msg":"method","method":"asdf","id":"3","params":[]}'
<== '{"msg":"result","id":"3","result":{}}'
<== '{"msg":"updated","methods":["3"]}'
failed to process rocketchat message: unknown message type 'updated', skipping
My primary question is: Why are the method calls returning empty result objects?
What is '{"server_id":"0"}'? This doesn't seem to be documented anywhere. This broke a few libraries I tried initially.
What are the updated messages? They also don't seem to be documented.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here's an example exchange with
wss://open.rocket.chat/websocket
:My primary question is: Why are the method calls returning empty result objects?
What is
'{"server_id":"0"}'
? This doesn't seem to be documented anywhere. This broke a few libraries I tried initially.What are the
updated
messages? They also don't seem to be documented.Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions