transactions

package
v0.0.0-...-843b749 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: MIT Imports: 10 Imported by: 0

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

func Discard(wsconn *websocket.Conn, message protocol.Message)

Discard sends the specified message down the websocket, and then closes it after blocking for a small period of time.

func HandleGSConnection

func HandleGSConnection(wsconn *websocket.Conn, gs *game.Server)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL