package
0.12.5
Repository: https://github.com/go-aah/aah.git
Documentation: pkg.go.dev

# Functions

IsDisconnected method is helper to identify error is disconnect related.
New method creates aah WebSocket engine with given aah application instance :).

# Constants

EventOnError event published whenever error occurs in the lifecycle such as Origin Check failed, WebSocket/WebSocket Action not found, WebSocket Action parameter parse error, and WebSocket upgrade fails.
EventOnPostConnect event published right after the successful WebSocket connection which is established with the aah server.
EventOnPostDisconnect event published right after the WebSocket client got disconnected.
EventOnPreConnect event published before connection gets upgraded to WebSocket.

# Variables

WebSocket errors.
WebSocket errors.
WebSocket errors.
WebSocket errors.
WebSocket errors.
WebSocket errors.
WebSocket errors.

# Structs

Context struct holds friendly WebSocket implementation for aah framework.
Engine struct holds the implementation of WebSocket for aah framework.
Request struct holds information for successful WebSocket connection made.

# Type aliases

EventCallbackFunc func type used for all WebSocket event callback.
IDGenerator func type used to implement custom WebSocket connection ID.