package
0.0.9
Repository: https://github.com/oarkflow/mq.git
Documentation: pkg.go.dev

# Functions

DefaultUpgrader returns a websocket upgrader suitable for creating sacrificial-socket websockets.
New creates a new instance of Server.
NewRNG creates a new random number generator.

# Constants

SubProtocol is the official sacrificial-socket sub protocol.

# Structs

BroadcastMsg represents an event to be dispatched to all Sockets on the Server.
Config specifies parameters for upgrading an HTTP connection to a WebSocket connection.
RNG is a random number generator that is safe for concurrent use by multiple go routines.
RoomMsg represents an event to be dispatched to a room of sockets.
Server manages the coordination between sockets, rooms, events and the socket hub add my own custom field.
Socket represents a websocket connection.

# Interfaces

No description provided by the author
EventHandler is an interface for registering events using SockerServer.OnEvent.