Update native WebSocket detection mechanism

Make it work on desktop browsers as well
Merge pull request #35 from sebastien-p/master

Update native WebSocket detection mechanism