Documentation ¶
Overview ¶
Package transactions implements handlers for various interactions with raw websocket connections, before they are packaged and added to the server.
Package transactions implements handlers for various interactions with raw websocket connections, before they are packaged and added to the server.
Package transactions implements handlers for various interactions with raw websocket connections, before they are packaged and added to the server.
Package transactions implements handlers for various interactions with raw websocket connections, before they are packaged and added to the server.
Package transactions implements handlers for various interactions with raw websocket connections, before they are packaged and added to the server.
Package transactions implements handlers for various interactions with raw websocket connections, before they are packaged and added to the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Discard ¶
Discard sends the specified message down the websocket, and then closes it after blocking for a small period of time.
func HandleGSConnection ¶
HandleGSConnection waits for the new connection to send an auth protocol. Once received, it checks if the auth is valid, and then waits for the connection to send a match ID.
If it does not receive an auth message and match ID within the timeout period, it drops the connection.
func HandleMMConnection ¶
func HandleMMConnection(wsconn *websocket.Conn, mm *matchmaking.Server)
HandleMMConnection waits for the new connection to send an auth protocol. Once received, it checks if the auth is valid, then retrieves the mmr of the specified account.
If it does not receive an auth message within the timeout period, it drops the connection.
Types ¶
This section is empty.