package
6.0.0+incompatible
Repository: https://github.com/iris-framework/iris.git
Documentation: pkg.go.dev

# Functions

New returns a new websocket server policy adaptor.

# Constants

All is the string which the Emitter use to send a message to all.
Broadcast is the string which the Emitter use to send a message to all except this connection.
DefaultClientSourcePath "/iris-ws.js".
DefaultWebsocketMaxMessageSize 1024.
DefaultWebsocketPingPeriod (DefaultPongTimeout * 9) / 10.
DefaultWebsocketPongTimeout 60 * time.Second.
DefaultWebsocketReadBufferSize 4096.
DefaultWebsocketReadTimeout 0, no timeout.
DefaultWebsocketWriterBufferSize 4096.
DefaultWebsocketWriteTimeout 0, no timeout.
WriteWait is 1 second at the internal implementation, same as here but this can be changed at the future*.

# Variables

ClientSource the client-side javascript raw source code.
DefaultIDGenerator returns the result of 64 random combined characters as the id of a new connection.

# Structs

Config the websocket server configuration all of these are optional.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
Server is the websocket server, listens on the config's port, the critical part is the event OnConnection.
UnderlineConnection is used for compatible with fasthttp and net/http underline websocket libraries we only need ~8 funcs from websocket.Conn so:.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author