Better doc
This commit is contained in:
parent
a17fe6380a
commit
5ace48f9e0
@ -60,14 +60,14 @@ var server = new PeerServer({
|
|||||||
The `'connection'` event is emitted when a peer connects to the server.
|
The `'connection'` event is emitted when a peer connects to the server.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
PeerServer#on('connection', function(id) { ... })
|
server.on('connection', function(id) { ... })
|
||||||
```
|
```
|
||||||
|
|
||||||
The `'disconnect'` event is emitted when a peer disconnects from the server or
|
The `'disconnect'` event is emitted when a peer disconnects from the server or
|
||||||
when the peer can no longer be reached.
|
when the peer can no longer be reached.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
PeerServer#on('disconnect', function(id) { ... })
|
server.on('disconnect', function(id) { ... })
|
||||||
```
|
```
|
||||||
|
|
||||||
## Problems?
|
## Problems?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user