Upgrader: Sets up the WebSocket connection. Can do anything (and have its own API), just as long as it eventually tells worse to take over the connection as a WebSocket connection
WebSocket Server: The part that parses WebSocket messages.
I will worry less about the upgraders (because they're a mess), and focus mostly on the websocket server aspect of it.
So, there will be two parts to
worse-server
:Upgrader: Sets up the WebSocket connection. Can do anything (and have its own API), just as long as it eventually tells
worse
to take over the connection as a WebSocket connectionWebSocket Server: The part that parses WebSocket messages.
I will worry less about the upgraders (because they're a mess), and focus mostly on the websocket server aspect of it.