I am testing Websocket
connectivity over VPN
. I see that it is much more stable when using the host name to connect than using the IP address alone.
Could somebody suggest any possible reason for this?
Also, I could nowhere find the nature of Websocket frames, if they are transmitted sequentially or in a random fashion?
WebSocket relies on TCP which orders the data for you. TCP gives you the abstraction of an ordered stream.
WebSocket can either use hostnames or IP addresses. Not quite sure what you mean by "much more stable", but if you are experiencing connectivity issues, it could be your DNS service... or it could be the implementation of WebSocket that you are using.