Polyjuice Client v0.4.4 Polyjuice.Client.API protocol View Source
Protocol for calling the Matrix client API.
Link to this section Summary
Functions
Call a Matrix client API.
Get the client's user and device IDs.
Execute a function in a queue for a room.
Stop the client.
Generate a unique transaction ID.
Link to this section Types
Link to this section Functions
Link to this function
call(client_api, endpoint)
View Sourcecall(client_api :: t(), endpoint :: Polyjuice.Client.Endpoint.Proto.t()) :: any()
Call a Matrix client API.
This is a lower-level function; generally, clients will want to call one of
the higher-level functions from Polyjuice.Client
or one of its submodules.
Get the client's user and device IDs.
Execute a function in a queue for a room.
This is to make sure that, for example, messages are sent in order.
Link to this function
stop(client_api, reason \\ :normal, timeout \\ :infinity)
View Sourcestop(Polyjuice.Client.t(), reason :: term(), timeout()) :: :ok
Stop the client.
Generate a unique transaction ID.