javascript - Client to Client Websockets -
I'm thinking that it's possible for two clients to establish a websocket connection with each other, provided they have something Help to "address" one another with the server
Currently a message is being sent from one customer through the webserver, the server only sends the message to the customer who needs to get it, so I am thinking that it is possible to leave the middleman.
This simply tells the server two clients that some information about each other needs to be communicated so that they can start connecting each other with a webcut. '
Is this possible? Or there are some other possible issues with this
This is not possible by web sockets today. However, you can use WebRTC, which is based on strong ways of establishing a peer for peer connections.
WebRTC is usually used for video conferencing applications, but also set as a data channel. I have not used it myself yet, but it is my understanding that the API is the same as This is for web socket.
There is a lot for WebRTC here you can find an example:
Comments
Post a Comment