We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to send data from server client, by websocket?
Any simple example code?
The text was updated successfully, but these errors were encountered:
Use the sock.send function:
var sock = new SockJS('https://mydomain.com/my_prefix'); sock.onopen = function() { console.log('open'); sock.send('test'); }; sock.onmessage = function(e) { console.log('message', e.data); sock.close(); }; sock.onclose = function() { console.log('close'); };
See client documentation
Sorry, something went wrong.
Thank you for answer. By the way, I meant the server-side example code, may I ask for one?
No branches or pull requests
How to send data from server client, by websocket?
Any simple example code?
The text was updated successfully, but these errors were encountered: