I want to determine the ping of a socket.io server without actually creating a socket. Why? Because I have a bunch of socket.io servers, and I want the client to connect to the one with the lowest latency and I don't want to manage all those sockets. Plus i think creating a socket and closing it on every single server just for a simple ping does not make sense and would cause performance problems.
Ideally, the client would create a websocket just for each ping (i think i know how to do that). But on the server side, what is the best way to receive those websocket messages (made with ws://), since you don't typically make/receive direct ws requests with socket.io (as all of that stuff is handled under-the-hood)?