Module nakama.engine.defold
Nakama defold integration.
Functions
| uuid () | Returns a UUID from the device's mac address. | 
| http (config, url_path, query_params, method, post_data, callback) | Make a HTTP request. | 
| socket_create (config, on_message) | Create a new socket with message handler. | 
| socket_connect (socket, callback) | Connect a created socket using web sockets. | 
| socket_send (socket, message, callback) | Send a socket message. | 
Functions
- uuid ()
 - 
    Returns a UUID from the device's mac address.
    
Returns:
- 
        The UUID string.
    
 
 - http (config, url_path, query_params, method, post_data, callback)
 - 
    Make a HTTP request.
    
Parameters:
- config The http config table, see Defold docs.
 - url_path The request URL.
 - query_params Query params string.
 - method The HTTP method string.
 - post_data String of post data.
 - callback The callback function.
 
Returns:
- 
        The mac address string.
    
 
 - socket_create (config, on_message)
 - 
    Create a new socket with message handler.
    
Parameters:
- config The socket config table, see Defold docs.
 - on_message Your function to process socket messages.
 
Returns:
- 
        A socket table.
    
 
 - socket_connect (socket, callback)
 - 
    Connect a created socket using web sockets.
    
Parameters:
- socket The socket table, see socket_create.
 - callback The callback function.
 
 - socket_send (socket, message, callback)
 - 
    Send a socket message.
    
Parameters:
- socket The socket table, see socket_create.
 - message The message string to send.
 - callback The callback function.