Can I connect two websocket connections to one page?

can I connect two websocket connections to one page?

because of the backend data architecture, different data have to be obtained from different servers, so there is this requirement

have any buddies ever used the experience of using one page with two websocket

Mar.07,2021

I haven't done it, but it should be possible. Imagine a chat page, open a websocket chat, and there is a websocket accept notification in the upper right corner of the personal information.


http-> upgrade-> Server agrees-> upgrade to websocket-> do whatever you need to do
it doesn't matter if you don't have a page.

Menu