Browse Source

Better doc

Michelle Bu 11 năm trước cách đây
mục cha
commit
5ace48f9e0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -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?