Client

Undocumented in source.

Constructors

this
this(string url, string state_path)
Undocumented in source.

Members

Functions

createRoom
string createRoom(RoomPreset p)

Create a new room on the homeserver

enable_encryption
void enable_encryption(string key)

Enables encryption Requires key because we always store stuff locked up. Must be logged in, so we know the user id. If path exist, then load it and decrypt with key. Otherwise create new keys and store them there encrypted with key.

invite
void invite(string roomid, string userid)
Undocumented in source. Be warned that the author may not have intended to support it.
login
void login(string name, string password)
Undocumented in source. Be warned that the author may not have intended to support it.
logout
void logout()
Undocumented in source. Be warned that the author may not have intended to support it.
onAccountDataUpdate
void onAccountDataUpdate(string type, string key, JSONValue value)
Undocumented in source.
onEphemeralEvent
void onEphemeralEvent(string name, JSONValue v)
Undocumented in source.
onInviteEvent
void onInviteEvent(string name, JSONValue v)
Undocumented in source.
onInviteRoom
void onInviteRoom(string name)
Undocumented in source.
onJoinAccountDataEvent
void onJoinAccountDataEvent(string name, JSONValue v)
Undocumented in source.
onJoinRoom
void onJoinRoom(string name, ulong highlight_count, ulong notification_count)
Undocumented in source.
onJoinStateEvent
void onJoinStateEvent(string name, JSONValue v)
Undocumented in source.
onJoinTimelineEvent
void onJoinTimelineEvent(string name, JSONValue v)
Undocumented in source.
onLeaveRoom
void onLeaveRoom(string name, JSONValue v)
Undocumented in source.
onLeaveStateEvent
void onLeaveStateEvent(string name, JSONValue v)
Undocumented in source.
onLeaveTimelineEvent
void onLeaveTimelineEvent(string name, JSONValue v)
Undocumented in source.
onPresenceEvent
void onPresenceEvent(JSONValue v)
Undocumented in source.
onSyncAccountDataEvent
void onSyncAccountDataEvent(JSONValue v)
Undocumented in source.
saveState
void saveState()
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send(string roomname, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
setPresence
void setPresence(Presence p, string status_msg)
Undocumented in source. Be warned that the author may not have intended to support it.
sync
void sync(int timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
uploadOneTimeKeys
void uploadOneTimeKeys()

Uploads more one time keys, if necessary

versions
string[] versions()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

rooms
string[] rooms [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta