Documentation ¶
Index ¶
- Constants
- func NewJSClient(t ct.TestLike, opts api.ClientCreationOpts) (api.Client, error)
- func SetupJSLogs(filename string)
- func WriteJSLogs()
- type JSClient
- func (c *JSClient) Close(t ct.TestLike)
- func (c *JSClient) CurrentAccessToken(t ct.TestLike) string
- func (c *JSClient) DeletePersistentStorage(t ct.TestLike)
- func (c *JSClient) ForceClose(t ct.TestLike)
- func (c *JSClient) GetNotification(t ct.TestLike, roomID, eventID string) (*api.Notification, error)
- func (c *JSClient) IsRoomEncrypted(t ct.TestLike, roomID string) (bool, error)
- func (c *JSClient) LoadBackup(t ct.TestLike, recoveryKey string) error
- func (c *JSClient) Logf(t ct.TestLike, format string, args ...interface{})
- func (c *JSClient) Login(t ct.TestLike, opts api.ClientCreationOpts) error
- func (c *JSClient) MustBackpaginate(t ct.TestLike, roomID string, count int)
- func (c *JSClient) MustBackupKeys(t ct.TestLike) (recoveryKey string)
- func (c *JSClient) MustGetEvent(t ct.TestLike, roomID, eventID string) api.Event
- func (c *JSClient) MustLoadBackup(t ct.TestLike, recoveryKey string)
- func (c *JSClient) MustStartSyncing(t ct.TestLike) (stopSyncing func())
- func (c *JSClient) Opts() api.ClientCreationOpts
- func (c *JSClient) SendMessage(t ct.TestLike, roomID, text string) (eventID string)
- func (c *JSClient) StartSyncing(t ct.TestLike) (stopSyncing func(), err error)
- func (c *JSClient) TrySendMessage(t ct.TestLike, roomID, text string) (eventID string, err error)
- func (c *JSClient) Type() api.ClientTypeLang
- func (c *JSClient) UserID() string
- func (c *JSClient) WaitUntilEventInRoom(t ct.TestLike, roomID string, checker func(e api.Event) bool) api.Waiter
- type JSEvent
Constants ¶
View Source
const CONSOLE_LOG_CONTROL_STRING = "CC:" // for "complement-crypto"
Variables ¶
This section is empty.
Functions ¶
func NewJSClient ¶
func SetupJSLogs ¶
func SetupJSLogs(filename string)
func WriteJSLogs ¶
func WriteJSLogs()
Types ¶
type JSClient ¶
type JSClient struct {
// contains filtered or unexported fields
}
func (*JSClient) Close ¶
Close is called to clean up resources. Specifically, we need to shut off existing browsers and any FFI bindings. If we get callbacks/events after this point, tests may panic if the callbacks log messages.
func (*JSClient) DeletePersistentStorage ¶
func (*JSClient) ForceClose ¶
func (*JSClient) GetNotification ¶
func (*JSClient) IsRoomEncrypted ¶
IsRoomEncrypted returns true if the room is encrypted. May return an error e.g if you provide a bogus room ID.
func (*JSClient) LoadBackup ¶
func (*JSClient) MustBackpaginate ¶
func (*JSClient) MustBackupKeys ¶
func (*JSClient) MustGetEvent ¶
func (*JSClient) MustLoadBackup ¶
func (*JSClient) MustStartSyncing ¶
func (*JSClient) Opts ¶
func (c *JSClient) Opts() api.ClientCreationOpts
func (*JSClient) SendMessage ¶
SendMessage sends the given text as an m.room.message with msgtype:m.text into the given room.
func (*JSClient) StartSyncing ¶
StartSyncing to begin syncing from sync v2 / sliding sync. Tests should call stopSyncing() at the end of the test.
func (*JSClient) TrySendMessage ¶
func (*JSClient) Type ¶
func (c *JSClient) Type() api.ClientTypeLang
Click to show internal directories.
Click to hide internal directories.