Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
On the server https://www.npmjs.com/package/websocket and on the client
var ws = new WebSocket('ws://echo.websocket.org/');
ws.send('Hello');
ws.onopen = function(event) { ... };
ws.onclose = function(event) { ... };
ws.onmessage = function(event) { ... };
ws.onerror = function(event) { ... };
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question