Skip to content

Commit

Permalink
Fix WS example
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Mar 6, 2017
1 parent 8e7f4f8 commit 03ec14f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/browser/webpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03ec14f

Please sign in to comment.