3 ms·
TCP is usable everywhere. Socket.io builds on top of websockets. Socket.io is useful when you have legacy web browsers that may not do websockets. Beyond that,
by hamidpalo 11y ago
TCP is usable everywhere. Socket.io builds on top of websockets.
Socket.io is useful when you have legacy web browsers that may not do websockets. Beyond that, it does not bring much over regular websockets.
- TazeTSchnitzel 11y ago> TCP is usable everywhere. Not on the web it isn't. I agree that socket.io offers little over WebSocket except for backwards-compatibility, but the OP's question was more about why you'd want to use WebSocket.