package
0.0.12-beta
Repository: https://github.com/theflyingcodr/sockets.git
Documentation: pkg.go.dev

# Functions

New will setup and return a new instance of a SocketServer.
WithChannelTimeout will setup the server with a timeout that is set on each channel as it is created.
WithMaxMessageSize defines the maximum message size in bytes that the client will accept.
WithNoChannelTimeout will setup the server so it won't ever expire channels, leaving it up to clients to disconnect.
WithPingPeriod will define the break between pings to the server.
WithPongTimeout defines the wait time the client will wait for a pong response from the server.
WithWriteTimeout defines the timeout length that the client will wait before failing the write.

# Structs

SocketServer is a central point that connects peers together.

# Type aliases

OptFunc defines a functional option to pass to the server at setup time.