message

package
v0.0.0-...-f91a4d6 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Conn    *websocket.Conn
	MsgType int
}

type Message

type Message struct {
	MsgType  string `json:"msgType"`
	GameId   string `json:"gameId"`
	PlayerId string `json:"playerId"`
	Data     string `json:"data"`
}

func ParseMessage

func ParseMessage(message string) (Message, error)

Jump to

Keyboard shortcuts

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