From 3dcf09451ea60a00a868d26906a1fea474f9a84d Mon Sep 17 00:00:00 2001 From: afrokick Date: Sun, 15 Dec 2019 14:50:43 +0300 Subject: [PATCH] add test via browser step in README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 203c22e..ca7581a 100644 --- a/README.md +++ b/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 ``` -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');