avallef commited on
Commit
38937c3
·
1 Parent(s): e6f6400

Changed route/message format

Browse files
Files changed (1) hide show
  1. server/README.md +4 -4
server/README.md CHANGED
@@ -44,7 +44,7 @@ Room messages are sent to everyone in a room
44
 
45
  ```typescript
46
  {
47
- "route": "test_connection_response",
48
  }
49
  ```
50
 
@@ -66,7 +66,7 @@ Room messages are sent to everyone in a room
66
 
67
  ```typescript
68
  {
69
- "route": "enter_room_response"
70
  "roomId": string,
71
  "users": []{
72
  username: string,
@@ -116,7 +116,7 @@ Room messages are sent to everyone in a room
116
 
117
  ```typescript
118
  {
119
- "route": "room_update",
120
  "roomId": string,
121
  "users": []{
122
  username: string,
@@ -155,7 +155,7 @@ Room messages are sent to everyone in a room
155
 
156
  ```typescript
157
  {
158
- "route": "receieve_touch",
159
  "id": string, // format: [userID]_[id]
160
  "type": "enable" | "disable", // Whether the vibration is active or not.
161
  "user": {
 
44
 
45
  ```typescript
46
  {
47
+ "message": "test_connection_response",
48
  }
49
  ```
50
 
 
66
 
67
  ```typescript
68
  {
69
+ "message": "enter_room_response"
70
  "roomId": string,
71
  "users": []{
72
  username: string,
 
116
 
117
  ```typescript
118
  {
119
+ "message": "room_update",
120
  "roomId": string,
121
  "users": []{
122
  username: string,
 
155
 
156
  ```typescript
157
  {
158
+ "message": "receieve_touch",
159
  "id": string, // format: [userID]_[id]
160
  "type": "enable" | "disable", // Whether the vibration is active or not.
161
  "user": {