Check if a websocket has been opened successfully. If not, fallback to other transport. Issue #997
Merge pull request #998 from R2R/master

Fix for websocket fallback issue #997