Skip to content

Instantly share code, notes, and snippets.

View ragexe's full-sized avatar
🦄

Makeychik Roman ragexe

🦄
View GitHub Profile
@ragexe
ragexe / js-task-1.md
Created November 28, 2017 16:17 — forked from codedokode/js-task-1.md
Задания на яваскрипт (простые)
Solving the challenge:
1. Create WebSocket and (important!) set binaryType = "arraybuffer";
2. Registration.
Think about cool participant name and then send a registration message.
Message looks like: { "name":"SuperHero", "command": "challenge accepted" }
3. The server will respond with:{"message":"You successfully accept challenge","next":"arithmetic","token":"eae34860c6f507f2"}.
Message contains an authentication token which you will attach to your messages for identification and the next task name.
4. Request the next task with { token: my_saved_token, command: saved_next_task_name }
There are 2 simple tasks: