Nakama (realtime multiplayer game server) js client in Cocos Creator

Hi, I’ve been having trouble implementing the Nakama client js plugin script in Cocos Creator. Specially while building for Facebook Instant Games. Has anyone been successful at implementing this? I would love to know what you did :grinning:

P.S. I’vee been using nakama-js.umd.js but maybe one of the other versions (cjs or esm) is the one you use?

js Nakama client files: https://github.com/heroiclabs/nakama-js/releases/tag/v0.4.0

A little late to the party - but for the next person stumbling across this:

We have a Javascript client library you can import:

Make sure you use v2.0.1 or later. This has been tested by game studios in production for Cocos Creator.

1 Like