Can I open two WebSocket connections to one server but two different ports from one html page.
I’ve searched in google but couldn’t find anything useful. And also can you give me links to some tutorials for web sockets. These are the ones i found:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Would this not work?
As for how your server handles it, it would very much depend on your server side technology.
For tutorials, the client-side aspect of WebSockets is dead easy, this is pretty much it:
The server-side aspect of how to handle incoming WebSocket connections is a lot more complex, and varies depending on your server-side technology (ASP.NET, PHP, Node.js etc.).