Documentation ¶
Index ¶
Constants ¶
View Source
const SERVER_HOST = "dhwani-backend.gurupras.me"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerConn ¶
type ServerConn struct { ServerConnection // contains filtered or unexported fields }
func NewServerConnection ¶
func NewServerConnection(id string, autoReconnect bool) (*ServerConn, error)
func (*ServerConn) Close ¶
func (s *ServerConn) Close() error
func (*ServerConn) Loop ¶
func (s *ServerConn) Loop()
func (*ServerConn) OnSignal ¶
func (s *ServerConn) OnSignal(cb func(SignalPacket)) func()
func (*ServerConn) Stop ¶
func (s *ServerConn) Stop()
type ServerConnection ¶
Click to show internal directories.
Click to hide internal directories.