exaquark-js
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -67,3 +67,2 @@ 'use strict'; | ||
this.state = null; // holds the latest client state | ||
this.transport = options.transport || window.WebSocket; | ||
@@ -101,3 +100,3 @@ // this.heartbeatTimer = null | ||
var encodedState = encodeURIComponent(JSON.stringify(initialState)); | ||
_this.conn = new _this.transport(_this.entryPoint + '?state=' + encodedState); // eslint-disable-line | ||
_this.conn = new WebSocket(_this.entryPoint + '?state=' + encodedState); // eslint-disable-line | ||
_this.conn.onopen = function (data) { | ||
@@ -104,0 +103,0 @@ return _this.onConnOpen(data); |
{ | ||
"name": "exaquark-js", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "JS wrapper for exaquark.com", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -53,3 +53,2 @@ import { log } from './utils/private' | ||
this.state = null // holds the latest client state | ||
this.transport = options.transport || window.WebSocket | ||
@@ -79,3 +78,3 @@ // this.heartbeatTimer = null | ||
let encodedState = encodeURIComponent(JSON.stringify(initialState)) | ||
this.conn = new this.transport(`${this.entryPoint}?state=${encodedState}`) // eslint-disable-line | ||
this.conn = new WebSocket(`${this.entryPoint}?state=${encodedState}`) // eslint-disable-line | ||
this.conn.onopen = data => this.onConnOpen(data) | ||
@@ -82,0 +81,0 @@ this.conn.onerror = error => this.onConnError(error) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20654
550