Categorygithub.com/kyleu/libnpn/npnconnection
modulepackage
0.0.1
Repository: https://github.com/kyleu/libnpn.git
Documentation: pkg.go.dev

# Functions

Creates a new Connection.
Constructor.
Constructor.
Creates a new service with the provided handler functions.
Sends a message to a provided Connection ID.

# Variables

Used by userless WASM messages.
Used by userless WASM messages.

# Structs

A group or room used to send broadcast messages.
Represents a user's WebSocket session.
Message intended to be sent to Connection objects representing a log message.
Common message struct for passing a service, command and parameter.
Message for updates of a user's online status.
Manages all Connection objects.
Serializable representation of a Connection.

# Type aliases

Function used to handle incoming connections.
Function used to handle incoming messages.
Array helper.