skewten-incubator / worse

websocket implementation
0 stars 0 forks source link

separate upgrader and websocket server #11

Open SEAPUNK opened 8 years ago

SEAPUNK commented 8 years ago

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 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.

SEAPUNK commented 8 years ago

upgrader -> handshaker. HTTP(s) upgraders will still have the name of "upgrader", however.