Websockets: do they share the connection?

If I have requests for multiple resources, do they share the connection? Therefore, if I have these queries:

  • WS: //someserver.com/path/somedata1
  • WS: //someserver.com/path/somedata2
  • WS: //somsserver.com/anotherpath/someotherdata li>

From what I have read so far, I would have to create 3 web directories to get data from these URLs. All the examples that I saw open the connection, receive data and close the connection. But if I created 3 web directories, they (under the covers) exchange one connection on someserver.com? or are they 3 separate compounds? which means 3 sockets on each side of the link, etc.

+3
source share
1 answer

, - , , , -, TCP .

, , , , URL-. , , . , WebSockets HTTP- , . WebSocket JSON , , WebSocket, , ( , UTF-8, ).

URL-, WebSocket, WebSocket. -, WebSockets, URL- WebSockets . , WebSockets, , URL-, , , , URL-.

+4

All Articles