TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 293 forks source link

How to send message with event to NodeJS server using Socket.IO #53

Closed MaximeLignereux closed 8 years ago

MaximeLignereux commented 8 years ago

Hi!

I would like use your library but I don't know how to send a message and a event.

Here is an example of a method in my server:

io.sockets.on('connection', function(socket){ socket.on('deleteEvent', function(timeline_id, event_id){ socket.emit("delete"); }); });

Can you help me please ??

Thank you

TakahikoKawasaki commented 8 years ago

In the WebSocket protocol (RFC 6455) , there is no concept called 'event'. I'm afraid that what you are talking about is specific to Socket.IO.