wsconnector

package
v0.0.0-...-427eadb Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector is a websocket connector for the "game" package

func NewConnector

func NewConnector(port uint16) *Connector

NewConnector return a new connector

func (*Connector) Start

func (c *Connector) Start(server *game.Server) error

Start and initialize the connector

type WsPlayerConn

type WsPlayerConn struct {
	// contains filtered or unexported fields
}

WsPlayerConn ...

func (*WsPlayerConn) Close

func (c *WsPlayerConn) Close() error

Close ...

func (*WsPlayerConn) Receive

func (c *WsPlayerConn) Receive() (data []byte, err error)

Receive ...

func (*WsPlayerConn) Send

func (c *WsPlayerConn) Send(message []byte) error

Send ...

Jump to

Keyboard shortcuts

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