spine-high-templar
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -48,3 +48,7 @@ import mitt from 'mitt'; | ||
this.instance = new WebSocket(props.url); | ||
var url = props.url; | ||
if (props.token) { | ||
url += '?token=' + props.token; | ||
} | ||
this.instance = new WebSocket(url); | ||
@@ -51,0 +55,0 @@ var _arr = ['pingInterval', 'reconnectInterval', 'connectDelay']; |
@@ -54,3 +54,7 @@ (function (global, factory) { | ||
this.instance = new WebSocket(props.url); | ||
var url = props.url; | ||
if (props.token) { | ||
url += '?token=' + props.token; | ||
} | ||
this.instance = new WebSocket(url); | ||
@@ -57,0 +61,0 @@ var _arr = ['pingInterval', 'reconnectInterval', 'connectDelay']; |
{ | ||
"name": "spine-high-templar", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Jasper Stam <jasper@codeyellow.nl>", |
15892
355