mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
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:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user