Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
The API provides a handler for a WebSocket stream API.
func New ¶
New creates a new instance of API. pingPeriod: is the interval, in which is server sends the a ping to the client. pongTimeout: is the duration after the connection will be terminated, when the client does not respond with the pong command.
func (*API) Close ¶
func (a *API) Close()
Close closes all client connections and stops answering new connections.
Click to show internal directories.
Click to hide internal directories.