ws

package
v0.0.0-...-8768773 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Connections map[string]*Ws
View Source
var PairSockets map[string]PairWs

Functions

func OrderSocketCloseHandler

func OrderSocketCloseHandler(orderId bson.ObjectId) func(code int, text string) error

func PairSocketCloseHandler

func PairSocketCloseHandler(pair string, conn *websocket.Conn) func(code int, text string) error

func PairSocketRegister

func PairSocketRegister(pair string, conn *websocket.Conn) error

func PairSocketWriteMessage

func PairSocketWriteMessage(pair string, message []byte) error

Types

type PairWs

type PairWs map[*websocket.Conn]bool

type Ws

type Ws struct {
	Conn        *websocket.Conn
	ReadChannel chan *types.WsMsg
}

Jump to

Keyboard shortcuts

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