Documentation ¶ Index ¶ func New(w http.ResponseWriter, request *http.Request, logger *slog.Logger) *websocket.Conn func OnReceive(connection *websocket.Conn, ...) bool func Send(connection *websocket.Conn, message string, logger *slog.Logger) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(w http.ResponseWriter, request *http.Request, logger *slog.Logger) *websocket.Conn func OnReceive ¶ func OnReceive(connection *websocket.Conn, callback func(message string, logger *slog.Logger) error, logger *slog.Logger) bool func Send ¶ func Send(connection *websocket.Conn, message string, logger *slog.Logger) bool Types ¶ This section is empty. Source Files ¶ View all Source files websocket.go Click to show internal directories. Click to hide internal directories.