diff --git a/docs/guides/real-time/chat/javascript.md b/docs/guides/real-time/chat/javascript.md index 5992500487..aa56e0dc3d 100644 --- a/docs/guides/real-time/chat/javascript.md +++ b/docs/guides/real-time/chat/javascript.md @@ -7,7 +7,7 @@ description: Learn how to build a real-time multi-user chat with WebSockets and In this guide, you will build a multi-user chat application with Directus’ WebSockets interface that authenticate users with an existing account, show historical messages stored in Directus, allow users to send new messages, and immediately -update all connected chats. +updates all connected chats. ## Before You Start @@ -17,7 +17,7 @@ You will need a Directus project. If you don’t already have one, the easiest w [managed Directus Cloud service](https://directus.cloud). Create a new collection called `messages`, with `date_created` and `user_created` fields enabled in the _Optional System -Fields_ pane on collection creation. Create a text field called `text`. +Fields_ pane on collection creation. Create an input field called `text`. Create a new Role called `Users`, and give Create and Read access to the `Messages` collection, and Read access to the `Directus Users` system collection. Create a new user with this role. Make note of the password you set. @@ -35,7 +35,7 @@ Create an `index.html` file and open it in your code editor: - +