feat: v0.1.8
This commit is contained in:
30
README.md
30
README.md
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user