Documentation ¶
Overview ¶
Package wsapi defines the websocket interface required for the bot
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageHandler ¶
MessageHandler is the api of an object that has a HandleRequest MessageHandlerFunc method
func NewMessageHandler ¶
func NewMessageHandler(h MessageHandlerFunc) MessageHandler
NewMessageHandler creates a MessageHandler from the given MessageHandlerFunc
type MessageHandlerFunc ¶
MessageHandlerFunc is the api of a handler that processes a WSMessage and sends a response back over the response channe;
type MessageType ¶
type MessageType int
MessageType represents the type of data being sent or received over a websocket connection
const ( Text MessageType = 1 Binary MessageType = 2 )
Websocket Message types
func (MessageType) String ¶
func (t MessageType) String() string
Click to show internal directories.
Click to hide internal directories.