Documentation
¶
Index ¶
Constants ¶
View Source
const (
WSMessageBufferSize = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶ added in v0.2.0
type Connection struct {
Messages chan Message
// contains filtered or unexported fields
}
func (*Connection) Close ¶ added in v0.2.0
func (wsInsp *Connection) Close()
func (*Connection) Send ¶ added in v0.2.0
func (wsInsp *Connection) Send(msg string) error
type Message ¶
type Message struct {
Data string `json:"data"`
Type MessageType `json:"type"`
}
type MessageType ¶
type MessageType uint8
const ( NotDefined MessageType = iota Request Response )
func (MessageType) String ¶ added in v0.2.0
func (mt MessageType) String() string
Click to show internal directories.
Click to hide internal directories.