Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
deleted 5 characters in body
Source Link
Alnitak
  • 340.8k
  • 72
  • 420
  • 503

WebSockets are not intended as clear "stream"TCP channels over which other existing protocols can be implemented.

WebSockets are designed to allow messages to be sent between a client and server, where an event is raised each time a message is received.

Hence a WebSocket client cannot simply connect to an existing TCP server - that server also has to speak the WebSocket protocol.

You could of course write a WebSocket-based server that does nothing but act as a proxy to existing network services.

WebSockets are not intended as clear "stream" channels over which other existing protocols can be implemented.

WebSockets are designed to allow messages to be sent between a client and server, where an event is raised each time a message is received.

Hence a WebSocket client cannot simply connect to an existing TCP server - that server also has to speak the WebSocket protocol.

You could of course write a WebSocket-based server that does nothing but act as a proxy to existing network services.

WebSockets are not intended as clear TCP channels over which other existing protocols can be implemented.

WebSockets are designed to allow messages to be sent between a client and server, where an event is raised each time a message is received.

Hence a WebSocket client cannot simply connect to an existing TCP server - that server also has to speak the WebSocket protocol.

You could of course write a WebSocket-based server that does nothing but act as a proxy to existing network services.

added 121 characters in body
Source Link
Alnitak
  • 340.8k
  • 72
  • 420
  • 503

WebSockets are not intended as clear "stream" channels over which other existing protocols can be implemented.

WebSockets are designed to allow messages to be sent between a client and server, where an event is raised each time a message is received.

Hence a WebSocket client cannot simply connect to an existing TCP server - that server also has to speak the WebSocket protocol.

You could of course write a WebSocket-based server that does nothing but act as a proxy to existing network services.

WebSockets are not intended as clear "stream" channels over which other existing protocols can be implemented.

WebSockets are designed to allow messages to be sent between a client and server, where an event is raised each time a message is received.

Hence a WebSocket client cannot simply connect to an existing TCP server - that server also has to speak the WebSocket protocol.

WebSockets are not intended as clear "stream" channels over which other existing protocols can be implemented.

WebSockets are designed to allow messages to be sent between a client and server, where an event is raised each time a message is received.

Hence a WebSocket client cannot simply connect to an existing TCP server - that server also has to speak the WebSocket protocol.

You could of course write a WebSocket-based server that does nothing but act as a proxy to existing network services.

Source Link
Alnitak
  • 340.8k
  • 72
  • 420
  • 503

WebSockets are not intended as clear "stream" channels over which other existing protocols can be implemented.

WebSockets are designed to allow messages to be sent between a client and server, where an event is raised each time a message is received.

Hence a WebSocket client cannot simply connect to an existing TCP server - that server also has to speak the WebSocket protocol.