Socket.io. How to detect incoming data -


for socket.io, how listen incoming data other emitted "event" types? looking read , detect proxyprotocol string.

i did little research. looks proxy string sent initial http request on separate line command this:

proxy tcp4 192.168.0.1 192.168.0.11 56324 80\r\n / http/1.1\r\n host: 192.168.0.11\r\n \r\n   

you can see explained in this article.

so, need handled http server fields initial http request starts websocket. occurs in initial connection stage before websocket established. so, not listen afterwards. take study of socket.io code figure out if stores information on socket.io socket or how hook initial http handler see info. little more research.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -