Skip to content

Commit

Permalink
fixup! fixup! fixup! Update usage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
surminus committed Aug 21, 2023
1 parent 7b8af81 commit befc288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ await space.updateProfileData((oldProfileData) => {

## Members

Members is a core concept of the library. When you enter a space, you become a `member`. On the client, your own membership is to referred to as `self`. You can get your `self` by calling `space.members.getSelf()`. To get all the members (including self), call `space.members.getAll()`. These method will return (respectively an object and array of):
When you enter a space, you become a `member`. On the client, your own membership is to referred to as `self`. You can get your `self` by calling `space.members.getSelf()`. To get all the members (including self), call `space.members.getAll()`. These method will return (respectively an object and array of):

```js
{
Expand Down Expand Up @@ -243,7 +243,7 @@ A location does not have a prescribed shape. In your UI it can represent a singl

The location property will be set on the [member](#members).

An event will be emitted when a member updates their location. When a member leaves, their location is set to `null`.
A location event will be emitted when a member updates their location. When a member leaves, their location is set to `null`.

```ts
space.subscribe('update', (member) => {
Expand Down

0 comments on commit befc288

Please sign in to comment.