# Constants
AckMessage holds the identifier for an ack messages.
ClosedConnectionMessage is the message that is received when try to send a message over a closed WebSocket connection.
ModeClient is a constant value that is used to indicate that the WebSocket host should start in client mode, meaning it will initiate connections to a remote server.
ModeServer is a constant value that is used to indicate that the WebSocket host should start in server mode, meaning it will listen for incoming connections from clients and respond to them.
PayloadMessage holds the identifier for a payload message.
WSRoute is the route which data will be sent over websocket.
# Variables
ErrAckTimeout signals that an acknowledgment timeout has been reached.
ErrConnectionAlreadyOpen signal that the WebSocket connection was already open.
ErrConnectionNotOpen signal that the WebSocket connection is not open.
ErrEmptyUrl signals that an empty websocket url has been provided.
ErrExpectedAckWasNotReceivedOnClose signals that the acknowledgment message was not received at close.
No description provided by the author
No description provided by the author
ErrInvalidWebSocketHostMode signals that the provided mode is invalid.
ErrNilMarshaller signals that a nil marshaller has been provided.
ErrNilPayloadConverter signals that a nil payload converter has been provided.
ErrNilPayloadProcessor signals that a nil payload processor has been provided.
ErrNoClientsConnected is an error signal indicating the absence of any connected clients.
ErrServerIsClosed represents the error thrown by the server's ListenAndServe() function when the server is closed.
No description provided by the author
ErrZeroValueAckTimeout signals that a zero value for acknowledge timeout has been provided.
ErrZeroValueRetryDuration signals that a zero value for retry duration has been provided.
# Structs
WebSocketConfig holds the configuration needed for instantiating a new web socket server.
WsMessage contains all the information needed for a WebSocket message.
# Interfaces
WSConn defines what a sender shall do.