Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

/ for relative hostname

  • Loading branch information...
commit 730339e1539ca5be6620e8b9e6019f2a45421fe4 1 parent 8772dbb
@michelle michelle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/api.md
View
2  docs/api.md
@@ -12,7 +12,7 @@ This class is a Peer, which can connect to other peers and listen for connection
* `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
* `key` String. API key for cloud PeerServer. Is not used for servers other than `cloud.peerjs.com`
- * `host` String. Server host. Default `cloud.peerjs.com`
+ * `host` String. Server host. Default `cloud.peerjs.com`. Also accepts `'/'` for relative hostname.
* `port` Number. Server port. Default `80`
* `config` Object. Configuration hash passed to `RTCPeerConnection`. This hash contains the ICE servers. Default `{ 'iceServers': [{ 'url': 'stun:stun.l.google.com:19302' }] }`
* `debug` Boolean. Prints verbose log messages. Default `false`
Please sign in to comment.
Something went wrong with that request. Please try again.