Documentation ¶
Index ¶
- func NewSIOHandlers() map[string]interface{}
- func ToString(c sio.Conn) string
- type Room
- type RoomManager
- type Server
- func (s *Server) AcceptSession(session *Session, query string) (error int)
- func (s *Server) DisconnectSession(conn sio.Conn) *Session
- func (s *Server) MountHandlers(nsp string, handlers map[string]interface{})
- func (s *Server) OnConnect(f func(sio.Conn) error)
- func (s *Server) OnDisconnect(f func(sio.Conn, string))
- func (s *Server) OnError(f func(sio.Conn, error))
- func (s *Server) Run(cfg *cfgargs.SrvConfig) error
- func (s *Server) SetNameSpace(nsp string)
- func (s *Server) SocketIOToSession(c sio.Conn) *Session
- func (s *Server) UIDSceneToSession(uidScene string) *Session
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSIOHandlers ¶
func NewSIOHandlers() map[string]interface{}
Types ¶
type RoomManager ¶
type RoomManager struct { }
type Server ¶
type Server struct { SocketIOToSessions map[string]*Session UIDSceneToSessions map[string]*Session UIDToSessions map[string]*Session sync.Mutex // contains filtered or unexported fields }
func (*Server) AcceptSession ¶
func (*Server) MountHandlers ¶
func (*Server) UIDSceneToSession ¶
Click to show internal directories.
Click to hide internal directories.