Skip to content

Commit

Permalink
refactor: change variable name from 'servers' to 'channels' (#368)
Browse files Browse the repository at this point in the history
Co-authored-by: ankitchaudharyy-TW <[email protected]>
  • Loading branch information
Ankitchaudharyy and ankitchaudharyy-TW authored Dec 21, 2022
1 parent 97aa1a8 commit 2ce0735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/lifecycle-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The above example makes Glee fire the lifecycle event only if it's coming from t
Additionally, you may want to restrict the lifecycle event by channel/topic. To do that, add a line like the following to your lifecycle file:

```js
export const servers = ['user/signedup']
export const channels = ['user/signedup']
```

The above example makes Glee fire the lifecycle event only if the connection has the channel `user/signedup` listed as one of its channels.
The above example makes Glee fire the lifecycle event only if the connection has the channel `user/signedup` listed as one of its channels.

0 comments on commit 2ce0735

Please sign in to comment.