@fanoutio/grip
Advanced tools
Comparing version 3.0.4-beta.1 to 3.0.4-beta.2
@@ -122,5 +122,8 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
if (subprotocol != null && !this.subprotocols.includes(subprotocol)) { | ||
debug('[WARN] WebSocketContext.acceptSubprotocol: ' + subprotocol + ' not included in request subprotocol list: ' + this.subprotocols.join(',')); | ||
debug('WebSocketContext.acceptSubprotocol: Cannot accept subprotocol ' + subprotocol + '.'); | ||
debug('WebSocketContext.acceptSubprotocol: Request subprotocol list: ' + this.subprotocols.join(',') + "."); | ||
return false; | ||
} | ||
this.acceptedSubprotocol = subprotocol; | ||
return true; | ||
}; | ||
@@ -127,0 +130,0 @@ WebSocketContext.prototype.getOutgoingEvents = function () { |
@@ -36,3 +36,3 @@ /// <reference types="node" /> | ||
getReqSubprotocols(): string[]; | ||
acceptSubprotocol(subprotocol: string | null): void; | ||
acceptSubprotocol(subprotocol: string | null): boolean; | ||
getOutgoingEvents(): IWebSocketEvent[]; | ||
@@ -39,0 +39,0 @@ toHeaders(): { |
@@ -127,5 +127,8 @@ "use strict"; | ||
if (subprotocol != null && !this.subprotocols.includes(subprotocol)) { | ||
debug_1.default('[WARN] WebSocketContext.acceptSubprotocol: ' + subprotocol + ' not included in request subprotocol list: ' + this.subprotocols.join(',')); | ||
debug_1.default('WebSocketContext.acceptSubprotocol: Cannot accept subprotocol ' + subprotocol + '.'); | ||
debug_1.default('WebSocketContext.acceptSubprotocol: Request subprotocol list: ' + this.subprotocols.join(',') + "."); | ||
return false; | ||
} | ||
this.acceptedSubprotocol = subprotocol; | ||
return true; | ||
}; | ||
@@ -132,0 +135,0 @@ WebSocketContext.prototype.getOutgoingEvents = function () { |
{ | ||
"name": "@fanoutio/grip", | ||
"version": "3.0.4-beta.1", | ||
"version": "3.0.4-beta.2", | ||
"author": "Fanout, Inc. <info@fanout.io>", | ||
@@ -5,0 +5,0 @@ "description": "GRIP Interface Library", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5701925
37546