Skip to navigation
WebSocket client cannot directly access a raw TCP server
23.09.25
This discrepancy arises because WebSockets and raw TCP sockets, while both operating over TCP, utilize different protocols and handshaking mechanisms. A WebSocket client cannot directly access a raw TCP server because WebSockets require a specific handshake and protocol framing that a standard TCP server does not inherently understand or implement. While both protocols operate over TCP, WebSockets introduce an application-layer protocol that begins with an HTTP-based handshake to "upgrade" the connection, followed by a frame-based messaging system [1] [2] [3]. A raw TCP server, on the other hand, expects direct byte streams without this initial handshake or subsequent framing [4 ``` pip install websockify websockify 8765 127.0.0.1:8888 ```
https://github.com/novnc/websockify
Reply
Anonymous
Information Epoch 1759908317
Make every program a filter.
Home
Notebook
Contact us