package
Version:
v0.3.6
Opens a new window with list of versions in this module.
Published: May 7, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
Documentation
¶
func SetEndpoint(endpoint string)
Close() puts the given connects back to the pool instead of closing it.
MarkUnusable() marks the connection not usable any more, to let the pool close it instead of returning it to pool.
type WsConn interface {
Dial(urlStr string, reqHeader http.Header)
IsConnected() bool
Close()
WriteMessage(messageType int, data []byte) error
ReadMessage() (messageType int, message []byte, err error)
WriteJSON(v interface{}) error
ReadJSON(v interface{}) error
MarkUnusable()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.