modulepackage
0.0.2-alpha.1
Repository: https://github.com/v4t54l/go-socketify.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
LoggingMiddleware logs data received and the connection id.
NewConnectionManager creates a new instance of ConnectionManager.
NewRouter creates a new instance of the Router.
# Structs
Connection struct represents a WebSocket connection.
ConnectionManager struct manages all active WebSocket connections.
ExampleEventDispatcher is a basic implementation of the EventDispatcher interface.
Message struct represents a message sent over the WebSocket connection.
Router struct handles upgrading a websocket connection with all CORS allowed.
# Interfaces
EventDispatcher interface defines methods for handling messages and events.
# Type aliases
Middleware type definition.