I cant seem to figure out a working solution to this error, more complete:
018-06-01 10:33:09 PM [Error] WebSocket: ws_0 - could not connect
Using:
Unity Editor 2018.2.5f1 on OSX Sierra 10.12.6
scripting Runtime 4.x
scripting backend IL2CPP
API Level 4.x
Firebase plugin version 5.2.1
This exact same problem was happening. This seemed to be related to the Mono Websocket implementations, as discussed in more detail on the following issues:
https://github.com/firebase/quickstart-unity/issues/106
https://github.com/firebase/quickstart-unity/issues/162
The Firebase dev team went around what is described there by providing their own native websocket implementations for each platform. Apparently the Unity Editor implementation is lagging behind.
The way to workaround this issue here was by disabling the FirebaseDatabase.dll under ../Firebase/Plugins/Mono/ for the editor platform, and then enabling the one FirebaseDatabase.dll directly under ../Firebase/Plugins/ instead.
So far, so good.
It is fixed in new firebase_sdk_v6.2.1 July release