Documentation
¶
Index ¶
- type Room
- func (room *Room) AddPeer(newPeer *peer.Peer)
- func (room *Room) Close()
- func (room *Room) CreatePeer(peerId string, transport *transport.WebSocketTransport) *peer.Peer
- func (room *Room) GetPeer(peerId string) *peer.Peer
- func (room *Room) GetPeers() map[string]*peer.Peer
- func (room *Room) HasPeer(peerId string) bool
- func (room *Room) ID() string
- func (room *Room) Map(fn func(string, *peer.Peer))
- func (room *Room) Notify(from *peer.Peer, method string, data interface{})
- func (room *Room) RemovePeer(peerId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.