3 ms·
It's a feature that the websocket upgrades from an HTTP connection. If your web server can support it, you can use your regular HTTP handler code to authentica
by BarkMore 16y ago
It's a feature that the websocket upgrades from an HTTP connection. If your web server can support it, you can use your regular HTTP handler code to authenticate incoming requests and then upgrade to the websocket protocol.
The API is not the only difference between HTTP and websockets. HTTP follows the request response pattern. A websocket is a pair of message streams.