Sent upon connection to the server.
- string? user — the username of the user who last logged into the client, if that user chose to persist the login
- string? token — the last authentication token the client received from the server, or null if one is not present
Re: Client:connect.
- UserInfo? user — the client’s current user or null if the client is not logged in
- string? token — a new login token, if the client is logged in
Sent when an internal error occurs on the server.
- string name — the error name (for example, TypeError)
- string message — the error message
- string? stack — the error stack; may not be present
Initiates a sign-in attempt; AuthResult.
- string user — the username
- string password — the password
Initiates a sign-out attempt.
- string request
Watcher for projects; Project.
- string request
- objectId project
Add a view to the given project.
- string request
- objectId project
Sets whether the current user loves the given project.
- string request
- objectId project
- bool isLoved
Creates a new empty project and returns the ID; objectId(Project).
- string request
Adds a tag to a project.
- string request
- objectId project
- string tag
Removes a tag from a project.
- string request
- objectId project
- string tag
Watcher for a user’s profile; User.
- string request
- string user
Basic information about a user; UserInfo.
- string request
- string user
Sets whether the current user is following the given user.
- string request
- string user
- bool isFollowing
Watcher for a collection page; Collection.
- string request
- objectId collection
Queries the list of projects in a collection; ProjectStub[].
- string request
- objectId collection
- unsigned offset
- unsigned length
Queries the categories and forums in the Amber forums; ForumCategory[].
- string request
Watcher for a forum; Forum.
- string request
- objectId forum
Queries the list of topics in a forum; Topic[].
- string request
- objectId forum
- unsigned offset
- unsigned length
Watcher for a topic; Topic.
- string request
- objectId topicId
Creates a new topic; objectId(Topic).
- string request
- objectId forum
- string name — the topic name
- string body — the post body
Queries the list of posts in a topic; Post[].
- string request
- objectId topicId
- unsigned offset — the index at which to start returning results
- unsigned length — the number of results to return
Posts a message in a topic; objectId(Post).
- string request
- objectId result
- string body
Edits a post.
- string request
- objectId post
- string body
- string? name
Deletes a post.
- string request
- objectId post
Watcher for tag pages; Tag.
- string request
- string tag$name
All arrays are returned as the first 20 items, unless an offset is given, in which case 20 items are returned starting at offset (0-based). Each watch packet returns a unique watch ID which can be used to unwatch the object.
- unsigned watch — the request ID of the initial watch packet
Watcher for project count.
- string request
Constants are looked up as properties in an object conforming to the Constant interface.
Query a constant value from the server.
- string request
- string name
Re: any client request.
- string request — the request ID
-
- result — the resultant data
Re: any client request. Sent when an error occurs.
- string request — the request ID
- RequestError reason — the error code
- string watch — the request ID for the initial watch packet
- object data — the data; includes arbitrary values and arrays of ListUpdate tuples
- string watch
- string request
- string key
- unsigned offset
- unsigned length