package
3.0.1+incompatible
Repository: https://github.com/nut-game/nano.git
Documentation: pkg.go.dev

# Packages

Package mocks is a generated GoMock package.
No description provided by the author

# Functions

CloseAll calls Close on all sessions.
GetNumberOfConnectedClients returns the number of connected clients.
GetSessionByID return a session bound to a frontend server id.
GetSessionByUID return a session bound to an user id.
NewSessionPool returns a new session pool instance.
OnAfterSessionBind adds a method to be called when session is bound and after all sessionBind callbacks.
OnSessionBind adds a method to be called when a session is bound same function cannot be added twice!.
OnSessionClose adds a method that will be called when every session closes.

# Variables

No description provided by the author

# Structs

HandshakeClientData represents information about the client sent on the handshake.
HandshakeData represents information about the handshake sent by the client.
No description provided by the author

# Interfaces

Session represents a client session, which can store data during the connection.
SessionPool centralizes all sessions within a Nano app.