Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender interface { SendToID(to string, msgType string, data interface{}) error SendToProtocol(to string, msgType string, data interface{}) error BroadcastWithFilter(msgType string, data interface{}, fn func(*melody.Session) bool) error }
func NewWebsocketSender ¶
type SessionKey ¶
type SessionKey string
const ( KeyProtocol SessionKey = "protocol" KeyID SessionKey = "ID" )
func (SessionKey) String ¶
func (sk SessionKey) String() string
Click to show internal directories.
Click to hide internal directories.