WebSocketListener icon indicating copy to clipboard operation
WebSocketListener copied to clipboard

sending binary message to specific client element (id)

Open ghost opened this issue 9 years ago • 1 comments

from web socket server, sending binary stream is it possible to target to specific javascript element (id) ? or: how I can combine the binary message, with some 'header' text information , so when arriving to client, I can handle the binary, to put it on specific id ,from 'header info'?

ghost avatar Apr 22 '16 04:04 ghost

I am afraid that the WebSocket protocol does not provide by itself any way to attach headers or metadata to the messages being sent. If you want to do something like that, you have to implement your own protocol that can be understood in the client side.

vtortola avatar Apr 22 '16 09:04 vtortola