feat: v0.1.8

This commit is contained in:
2023-11-05 19:38:19 +08:00
parent 349c166a91
commit 7667e17240
5 changed files with 158 additions and 4 deletions

View File

@@ -25,6 +25,11 @@ Enter room:
}
```
or
```
.enter room-id:<roomid> client-id:<clientid>
```
Exit room:
```json
{
@@ -32,6 +37,11 @@ Exit room:
}
```
or
```
.exit
```
Destroy room:
```json
{
@@ -39,6 +49,11 @@ Destroy room:
}
```
or
```
.destroy
```
List room peers:
```json
{
@@ -46,6 +61,11 @@ List room peers:
}
```
or
```
.list-peers
```
Broadcast room message:
```json
{
@@ -54,6 +74,11 @@ Broadcast room message:
}
```
or
```
.broadcast data:<message>
```
Send room peer message:
```json
{
@@ -63,6 +88,11 @@ Send room peer message:
}
```
or
```
.peer peer-id:<peerclientid> data:<message>
```
Test with command line:
> WebSocket cat: https://www.npmjs.com/package/wscat