diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2020-09-17 23:03:28 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2020-09-18 08:48:53 -0400 |
commit | 13d238f798b570bddf79aa117c294fe1e4414881 (patch) | |
tree | a992b91d3e57976f27e9845afb683bad8e13c4af /tutorial_welcome.md | |
parent | doc improvements (diff) |
update example and tutorials to new API
Diffstat (limited to 'tutorial_welcome.md')
-rw-r--r-- | tutorial_welcome.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tutorial_welcome.md b/tutorial_welcome.md index 3d91b0c..ffbf8f8 100644 --- a/tutorial_welcome.md +++ b/tutorial_welcome.md @@ -27,7 +27,7 @@ certain types of events, it will only include those event types. If we give it an empty list, it will give none of the events. iex> alias Polyjuice.Client.Filter - iex> client = Polyjuice.Client.start_link( + iex> {:ok, pid} = Polyjuice.Client.start_link( ...> "http://localhost:8008", ...> access_token: "access_token", ...> user_id: "@echobot:localhost", @@ -38,6 +38,7 @@ an empty list, it will give none of the events. ...> |> Filter.include_state_types(["m.room.member"]) ...> |> Filter.include_timeline_types(["m.room.member"]) ...> ) + iex> client = Polyjuice.Client.get_client(pid) Note that we include `m.room.member` events in both `state` and `timeline`. This is because these refer to different sections of the sync response, rather |