mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
socket-stream-client cleanup
This commit is contained in:
@@ -180,7 +180,7 @@ testAsyncMulti('stream - /websocket is a websocket endpoint', [
|
||||
//
|
||||
// Verify that /websocket and /websocket/ don't return the main page
|
||||
//
|
||||
['/websocket', '/websocket/'].forEach(function(path) {
|
||||
['/websocket', '/websocket/'].forEach((path) => {
|
||||
HTTP.get(
|
||||
Meteor._relativeToSiteRootUrl(path),
|
||||
expect(function(error, result) {
|
||||
|
||||
@@ -20,8 +20,8 @@ export class ClientStream extends StreamClientCommon {
|
||||
this.client = null; // created in _launchConnection
|
||||
this.endpoint = endpoint;
|
||||
|
||||
this.headers = this.options.headers || Object.create(null);
|
||||
this.npmFayeOptions = this.options.npmFayeOptions || Object.create(null);
|
||||
this.headers = this.options.headers || {};
|
||||
this.npmFayeOptions = this.options.npmFayeOptions || {};
|
||||
|
||||
this._initCommon(this.options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user