Differentiate websocket vs. http the right way