WebSocketListener
WebSocketListener copied to clipboard
sending binary message to specific client element (id)
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'?
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.