Fixes #189 (Work around Firefox's crippled websocket implementation);