avallef commited on
Commit
0e0a112
·
1 Parent(s): 81ad08a

Bigger headers

Browse files
Files changed (1) hide show
  1. server/README.md +8 -8
server/README.md CHANGED
@@ -28,7 +28,7 @@ Types can be `client -> server`, `server -> client <private | room>`.
28
  Private messages are sent directly to client
29
  Room messages are sent to everyone in a room
30
 
31
- ### Test Connection
32
 
33
  **Type:** `client -> server`
34
  **Payload:**
@@ -38,7 +38,7 @@ Room messages are sent to everyone in a room
38
  "route": "test_connection"
39
  }
40
  ```
41
- ### Set Username
42
  **Type:** `client -> server`
43
  **Payload:**
44
  ```typescript
@@ -65,7 +65,7 @@ Room messages are sent to everyone in a room
65
  }
66
  ```
67
 
68
- ### Join Room
69
 
70
  **Type:** `client -> server`
71
  **Description:** Used to enter a room. Join an existing room by including roomId, or if room doesn't exist, create one with that roomId
@@ -89,7 +89,7 @@ Room messages are sent to everyone in a room
89
  }
90
  ```
91
 
92
- ### Leave Room
93
 
94
  **Type:** `client -> server`
95
  **Description:** Used to enter a room.
@@ -112,7 +112,7 @@ Room messages are sent to everyone in a room
112
  }
113
  ```
114
 
115
- ### Get Rooms
116
 
117
  **Type:** `client -> server`
118
  **Description:** Used to get list of joined rooms
@@ -132,7 +132,7 @@ Room messages are sent to everyone in a room
132
  }
133
  ```
134
 
135
- ### Room Update
136
 
137
  **Type:** `server -> client <room>`
138
  **Description:** Server message that is sent when the room gets updated such as someone joins or leaves
@@ -151,7 +151,7 @@ Room messages are sent to everyone in a room
151
  }
152
  ```
153
 
154
- ### Send Touch
155
 
156
  **Type:** `client -> server`
157
  **Description:** Used to send touch/vibration data to room. Client assigns a number for an ID. That ID is then used to update the vibration. Re-use `send_touch` to update previous vibration. Use `"type": "disable"` to disable the vibration. If an update isn't sent within 1 second of creatin/last update it will automatically be disabled.
@@ -171,7 +171,7 @@ Room messages are sent to everyone in a room
171
  }
172
  ```
173
 
174
- ### Receive Touch
175
 
176
  **Type:** `server -> client <room>`
177
  **Description:**
 
28
  Private messages are sent directly to client
29
  Room messages are sent to everyone in a room
30
 
31
+ ## Test Connection
32
 
33
  **Type:** `client -> server`
34
  **Payload:**
 
38
  "route": "test_connection"
39
  }
40
  ```
41
+ ## Set Username
42
  **Type:** `client -> server`
43
  **Payload:**
44
  ```typescript
 
65
  }
66
  ```
67
 
68
+ ## Join Room
69
 
70
  **Type:** `client -> server`
71
  **Description:** Used to enter a room. Join an existing room by including roomId, or if room doesn't exist, create one with that roomId
 
89
  }
90
  ```
91
 
92
+ ## Leave Room
93
 
94
  **Type:** `client -> server`
95
  **Description:** Used to enter a room.
 
112
  }
113
  ```
114
 
115
+ ## Get Rooms
116
 
117
  **Type:** `client -> server`
118
  **Description:** Used to get list of joined rooms
 
132
  }
133
  ```
134
 
135
+ ## Room Update
136
 
137
  **Type:** `server -> client <room>`
138
  **Description:** Server message that is sent when the room gets updated such as someone joins or leaves
 
151
  }
152
  ```
153
 
154
+ ## Send Touch
155
 
156
  **Type:** `client -> server`
157
  **Description:** Used to send touch/vibration data to room. Client assigns a number for an ID. That ID is then used to update the vibration. Re-use `send_touch` to update previous vibration. Use `"type": "disable"` to disable the vibration. If an update isn't sent within 1 second of creatin/last update it will automatically be disabled.
 
171
  }
172
  ```
173
 
174
+ ## Receive Touch
175
 
176
  **Type:** `server -> client <room>`
177
  **Description:**