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
When I have a listener like this.$options.sockets.onmessage = (data) => console.log(data), it triggers on any message from server. How do I know which response is from which request?
Is there some way to have request in a form like this.$socket.send('some data').then(response=> handleResponse(response)) so there would be a connection between specific request and its response?
The text was updated successfully, but these errors were encountered:
When I have a listener like
this.$options.sockets.onmessage = (data) => console.log(data)
, it triggers on any message from server. How do I know which response is from which request?Is there some way to have request in a form like
this.$socket.send('some data').then(response=> handleResponse(response))
so there would be a connection between specific request and its response?The text was updated successfully, but these errors were encountered: