Spaces:
Runtime error
Runtime error
Changed route/message format
Browse files- 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 |
-
"
|
| 48 |
}
|
| 49 |
```
|
| 50 |
|
|
@@ -66,7 +66,7 @@ Room messages are sent to everyone in a room
|
|
| 66 |
|
| 67 |
```typescript
|
| 68 |
{
|
| 69 |
-
"
|
| 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 |
-
"
|
| 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 |
-
"
|
| 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": {
|