3 ms·
Yeah, but both parties can leverage the existing connection without resorting to a message-based protocol, can't they? They could just assume they're now sendin
by yokohummer7 10y ago
Yeah, but both parties can leverage the existing connection without resorting to a message-based protocol, can't they? They could just assume they're now sending and receiving bytes after the upgrade.
What I meant when I said "utilizing the legacy TCP sever" was creating some plugin that is attached to the server, effectively acting as a lightweight HTTP server that just does the upgrade process (within the same connection). In this way the remaining communication doesn't have to involve message encapsulation/decapsulation each time a message is transferred.
- aidenn0 10y agoI think the message encapsulation was chose because it's more work to implement a message-passing system on top of a stream than to do the opposite.