浏览代码

add test via browser step in README

afrokick 5 年之前
父节点
当前提交
3dcf09451e
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      README.md

+ 4 - 2
README.md

@@ -37,7 +37,9 @@ const { PeerServer } = require('peer');
 const server = PeerServer({port: 9000, path: '/myapp'});
 ```
 
-Connecting to the server from PeerJS:
+3. Check that server works: open browser with [http://localhost:9000/myapp](http://localhost:9000/myapp) It should returns JSON with name, description and website fields.
+
+### Connecting to the server from PeerJS:
 
 ```html
 <script>
@@ -45,7 +47,7 @@ Connecting to the server from PeerJS:
 </script>
 ```
 
-Using HTTPS: Simply pass in PEM-encoded certificate and key.
+### Using HTTPS: Simply pass in PEM-encoded certificate and key.
 
 ```javascript
 const fs = require('fs');