Defold client for Nakama server.
on_party_leader()
socket eventsocket.CHANNELTYPE_*
and socket.ERROR_*
constantsnakama/socket.lua
. This includes sending events and adding socket event listeners.nakama.do_foo(client, ...)
and client.do_foo(...)
. The old approach of passing the client or socket instance as the first argument still exists to help with backwards compatibility.FIX: Status follow and unfollow messages used the wrong argument name (#33)
FIX: Encoding of empty status update message (thanks @uncleNight)
NEW: Generated new version of the API. New API functions:
nakama.validate_purchase_apple()
nakama.validate_purchase_google()
nakama.validate_purchase_huawei()
nakama.session_logout()
nakama.write_tournament_record2()
nakama.import_steam_friends()
CHANGE: Signatures for a few functions operating on user groups and friends.
BREAKING CHANGE: Updated to the new native WebSocket extension for Defold (https://github.com/defold/extension-websocket). To use Nakama with Defold you now only need to add a dependency to the WebSocket extension. FIX: HTTP requests handle HTTP status codes outside of the 200-299 range as errors. The general error handling based on the response from Nakama has also been improved. FIX: Match create messages are encoded correctly when the message is empty