Jelajahi Sumber

update docs

ericz 12 tahun lalu
induk
melakukan
e85dca555b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      docs/api.md

+ 2 - 2
docs/api.md

@@ -1,10 +1,10 @@
 # PeerJS API Reference
 
-## Class: Peer
+## Class: peerjs.Peer
 
 This class is a the BinaryJS websocket server. It is an `EventEmitter`.
 
-### new peerjs.Peer([id], options)
+### new Peer([id], options)
 
 * `id` String. The id by which this peer will be identified when other peers try to connect to it. If no id is given, one will be generated by the server
 * `options` Object