Unity+Firebase-Database[Error] WebSocket: ws_0 - could not connect

后端 未结 2 1782
无人共我
无人共我 2021-01-06 14:59

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

相关标签:
2条回答
  • 2021-01-06 15:31

    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.

    0 讨论(0)
  • 2021-01-06 15:31

    It is fixed in new firebase_sdk_v6.2.1 July release

    0 讨论(0)
提交回复
热议问题