Documentation ¶
Index ¶
- Constants
- Variables
- type Conn
- type Options
- type Sockd
- func (s *Sockd) LocalCloseRoom(ns, room string) error
- func (s *Sockd) LocalKickRoomConn(ns, room string, cid int64) error
- func (s *Sockd) LocalListConns(ns string) (map[int64]string, error)
- func (s *Sockd) LocalListRoomConns(ns, room string) (map[int64][]string, error)
- func (s *Sockd) NewConnection(opts sockdx.ConnOptions) error
- func (s *Sockd) Poll(ns, roomId string, max, min int64) (*sockdx.PollResponse, error)
- func (s *Sockd) RoomUpdateTags(ns, roomId string, opts sockdx.UpdateTagOptions) error
- func (s *Sockd) SendBroadcast(ns, room string, ignores []int64, payload []byte) error
- func (s *Sockd) SendDirect(ns, room string, connId int64, payload []byte) error
- func (s *Sockd) SendDirectBatch(ns, room string, conns []int64, payload []byte) error
- func (s *Sockd) SendTagged(ns, room string, tags []string, ignores []int64, payload []byte) error
Constants ¶
View Source
const ( RoomModeEncoded = 0 RoomModeBroadcast = 1 RoomModePoll = 2 RoomModeBroadcastPoll = 3 )
Variables ¶
View Source
var Debug = true
Functions ¶
This section is empty.
Types ¶
type Sockd ¶
type Sockd struct {
// contains filtered or unexported fields
}
func (*Sockd) LocalCloseRoom ¶
func (*Sockd) LocalKickRoomConn ¶
func (*Sockd) LocalListRoomConns ¶
func (*Sockd) NewConnection ¶
func (s *Sockd) NewConnection(opts sockdx.ConnOptions) error
func (*Sockd) RoomUpdateTags ¶
func (s *Sockd) RoomUpdateTags(ns, roomId string, opts sockdx.UpdateTagOptions) error
func (*Sockd) SendBroadcast ¶
func (*Sockd) SendDirect ¶
func (*Sockd) SendDirectBatch ¶
Click to show internal directories.
Click to hide internal directories.