How to enable gRpc communication from JS Client library?

I tried looking up on the docs and the forum how to enable gRPC for JS client. I can’t find it, can you give directions?

Hello @eduardomoroni,

Our JS client SDK doesn’t support gRPC natively as it’s supposed to be browser-compatible, which in turn doesn’t support gRPC.

If you’re running from the browser, there’s some complex workarounds that require a proxy server (at which point you’re likely better off just using the REST APIs).

If you’re in a Node.js environment, you may be able to generate the stubs but you’d have to do it yourself using the nakama and nakama-common .proto files.

Best.

1 Like