These functions handle authentication and set up general server communication.
| Function | Description | C# Signature |
|---|---|---|
| SDK | Constructor. Instantiates the SDK class in the current client. | MuxyGameLink.SDK.SDK (String ClientId) |
| ConnectionAddress | Generates connection address for WebSocket. Stage is one of Production or Sandbox (the development/debug environment). | String ConnectionAddress(Stage Stage) |
| IsAuthenticated | Checks current authentication status. | bool IsAuthenticated () |
| AuthenticateWithPIN | Authenticate with a PIN. Executes Callback on completion. | UInt16 AuthenticateWithPIN(string PIN,AuthenticationCallback Callback) |
| AuthenticateWithRefreshToken | Authenticate with refresh token, which is obtained from initially authenticating with a PIN. Executes Callback on completion. | UInt16 AuthenticateWithRefreshToken(string RefreshToken,AuthenticationCallback Callback) |
| AuthenticationCallback | Handler signature for response to any authentication call. | delegate void AuthenticationCallback(AuthenticationResponse Payload) |
| ReceiveMessage | Receive a message from a WebSocket for processing. Returns true if message was received correctly. | bool ReceiveMessage(string Message) |
| ForEachPayload | Executes Callback on each payload waiting to be sent. Generally used to send the payload through a WebSocket. | void ForEachPayload(PayloadCallback Callback) |
| PayloadCallback | Handler signature for response to ForEachPayload() call. | delegate void PayloadCallback(string Payload) |