Update native WebSocket detection mechanism

Make it work on desktop browsers as well