socket-stream-client cleanup

This commit is contained in:
Jan Dvorak
2021-05-26 21:59:05 +02:00
parent 8814a3ce8e
commit 9a9e90dbfc
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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);