Open little-brain opened 4 years ago
You have a mistake in the syntax. Sorry, the server part should be throwing in this case.
You have:
protocol.send('myMessage', { 'myData': 'to send from server to ${sessionId}', sessionId });
You should have:
protocol.send('myMessage', { 'myData': 'to send from server to ${sessionId}' }, sessionId);
Hi, I can't get the client to receive a message from the server. Here's my code:
On the client:
The console logs show that the server receives the message from the client, but the client does not receive the message from the server. This looks like a great package if I could only figure out how to get this working? Thanks!