MoralisWeb3/unity-web3-game-kit

WebGL LiveQuery Callbacks are not fired.

xactant opened this issue · 4 comments

In WebGL the sub-scribal client is not re-acting to events or firing callback methods.

Move LiveQuery for WeGL listener to JS with jslib interface to Unity,

  • Created js code in Templates index.js for connecting and communicating with a websocket.
  • Created MoralisLiveQueriesGL.cs and moralisLiveQueryGl.jslib as a bridge between Unity and javascript.
  • Added a bunch of logs in the js side to figure out why W.S. connection is connecting but response is false.
    Current response received and passed through final method as {"isTrusted": true} but response sent to C# layer is undefined.
  • Receiving the 'true' response, back to original error '190' nothing in Google or Unity docs about what this means ...

Fix checked into the metaverse branch.