Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
模拟会话管理器
func NewSessionManager ¶
func NewSessionManager() *SessionManager
func (*SessionManager) Add ¶
func (m *SessionManager) Add(ws *websocket.Conn)
func (*SessionManager) Broadcast ¶
func (m *SessionManager) Broadcast(msg string)
func (*SessionManager) Remove ¶
func (m *SessionManager) Remove(ws *websocket.Conn)
Click to show internal directories.
Click to hide internal directories.