Categorygithub.com/panta/ws
modulepackage
0.1.6
Repository: https://github.com/panta/ws.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewConnection is used to initialize a new websocket connection.
NewID generates a short random base-58 ID.
NewManager creates and returns a Manager.
WrapError wraps an error using a sentinel..

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
not an error actually.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Connection is a websocket connection (either for a server or a client).
Manager is used on the server side to hold references to all active connections, handle broadcasting, etc.
Message holds the data sent over the websocket.

# Type aliases

ConnectionList is a map used to help manage a map of connections (connections).
No description provided by the author
No description provided by the author
MessageHandler is the type for message handlers differentiated on type.