Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxMessageSize = 8192 RWTimeout = 60 * time.Second HBTimeout = RWTimeout / 2 )
Variables ¶
This section is empty.
Functions ¶
func GetLocalTime ¶
func InitLogging ¶
func InitLogging(forceColours, disableTimestamp bool)
func InitSyslog ¶
func InitSyslog()
func ManageHeartbeats ¶
func ManageHeartbeats(cm ConnectionManager)
func SetPongHandler ¶
func SetPongHandler(conn *WebsocketConn)
Types ¶
type ConnectionManager ¶
type ConnectionManager interface { GetConnections() []*WebsocketConn RemoveConnection(conn *WebsocketConn) }
type LoginMessage ¶
type WebsocketConn ¶
func NewWebsocketConn ¶
func NewWebsocketConn(conn *websocket.Conn, descFmt string, args ...interface{}) *WebsocketConn
func (WebsocketConn) String ¶
func (wsc WebsocketConn) String() string
Click to show internal directories.
Click to hide internal directories.