Documentation
¶
Overview ¶
Package workflowpluginwebsocket provides the WebSocket workflow plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebSocketPlugin ¶
func NewWebSocketPlugin() sdk.PluginProvider
NewWebSocketPlugin returns the WebSocket SDK plugin provider.
Types ¶
type Hub ¶
type Hub interface {
BroadcastToRoom(room string, msg []byte) int
// SendTo delivers a message directly to a connection by its ID.
SendTo(connID string, msg []byte) bool
}
Hub is an exported interface for the WebSocket hub's broadcast capabilities. Satisfied by the internal hub after the ws.server module is initialized.
Click to show internal directories.
Click to hide internal directories.