Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomMessage ¶
RoomMessage - Message from a room
type Session ¶
type Session struct { NextBatch string Rooms map[string]RoomInfo // The rooms a user is part of AccessToken string HomeServer string OnNewMsg chan RoomMessage OnJoin chan string // When we find a new room TxnID int // contains filtered or unexported fields }
Session .
func (*Session) RoomNameToID ¶
RoomNameToID - get the room id from a room name
func (*Session) SendToRoom ¶
SendToRoom - Send message to room
Click to show internal directories.
Click to hide internal directories.