update-sockjs: Update sockjs from version 0.3.4 to 1.1.1.

- Add browserify to npm dependencies.
- Add SockJS-client to npm dependencies.
- Add npm postinstall script to generate browser version of SockJS-client
  from npm package.
- Change deprecated SockJS object property 'protocol_whitelist' to
  'transports'.
- Fix settings.
This commit is contained in:
K.Kanakhin
2016-12-05 13:54:08 +06:00
committed by Tim Abbott
parent aa7f11dd6c
commit 7bf10ec74f
6 changed files with 8 additions and 2395 deletions

View File

@@ -55,7 +55,7 @@ function Socket(url) {
Socket.prototype = {
_create_sockjs_object: function Socket__create_sockjs_object() {
this._sockjs = new SockJS(this.url, null, {protocols_whitelist: this._supported_protocols});
this._sockjs = new SockJS(this.url, null, {transports: this._supported_protocols});
this._setup_sockjs_callbacks(this._sockjs);
},