Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn GET into POST for connect in WS tutorial #15

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _tutorials/websockets.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ load, without creating a user account with a password.
4. Change the text shown in the main page to *"Hello ..."* when the
user name is known (replaced the dots by the user name).

5. GET method is handy for debugging, however we are changing the
state of the server with the route `connect/:user` and a GET
request should not change the state of the server. Turn GET
into POST for this route.

## Communicating the user id to the server

We will now use AJAX to send the user name to the server, so that it
Expand Down