From 03ec14f23383fb7d9361d5d5bb63325899881e3a Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Tue, 7 Mar 2017 00:44:35 +0200 Subject: [PATCH] Fix WS example --- examples/browser/webpage.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/browser/webpage.html b/examples/browser/webpage.html index f47398c..1cb119c 100644 --- a/examples/browser/webpage.html +++ b/examples/browser/webpage.html @@ -57,11 +57,15 @@ $("#howto").hide(); var auth = $("#auth").val(); + var blynk = new Blynk.Blynk(auth); + + /* For custom WsClient connection: var blynk = new Blynk.Blynk(auth, { connector: new Blynk.WsClient({ addr: 'localhost', port:8080, path: '/' }) }); + */ var v0 = new blynk.VirtualPin(0); var v1 = new blynk.VirtualPin(1);