Skip to content

1. Authentication

David Yang edited this page Aug 4, 2022 · 2 revisions

Before authenticating, open a websocket connection at wss://summer-code-jam-2022.herokuapp.com/ws

Register

JSON structure

{
    "action": "login"
    "name": "xxx"
    "password": "xxx"
}

Success

New account created, welcome, xxx!

Duplicate name

Username "xxx" taken

Login

JSON structure

{
    "action": "login"
    "name": "xxx"
    "password": "xxx"
}

Success

Welcome, xxx!

Clone this wiki locally