Hi!
I’ve been trying to use ‘socket.send()’ to send a socket.io compliant message.
I’ve tried using some formats but nothing worked so far. For example:
socket.send(‘42,[“ACTION”,{“data”: “value”}]’);
socket.send(‘42[“ACTION”,{“data”: “value”}]’);
socket.send(’[“ACTION”,{“data”: “value”}]’);
In the browser dev tools I can see that the message is being sent like so:
42[“ACTION”,{“data”: “value”}]
Whenever I send a message I get this error from the serve:
websocket: close 1005 (no status)
Please, can someone help me with that? What’s the proper way to send those messages?