@mercuryworkshop/bare-mux
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -101,3 +101,3 @@ import { v4 } from 'uuid'; | ||
//@ts-expect-error not installing node types for this one thing | ||
self.BCC_VERSION = "1.0.8"; | ||
self.BCC_VERSION = "1.0.9"; | ||
console.debug("BARE_MUX_VERSION: " + self.BCC_VERSION); | ||
@@ -183,3 +183,3 @@ function initTransport(name, config) { | ||
// get the unhooked value | ||
const getRealReadyState = Object.getOwnPropertyDescriptor(WebSocket.prototype, 'readyState').get; | ||
Object.getOwnPropertyDescriptor(WebSocket.prototype, 'readyState').get; | ||
const wsProtocols = ['ws:', 'wss:']; | ||
@@ -280,9 +280,3 @@ const statusEmpty = [101, 204, 205, 304]; | ||
// this value doesn't change when it's CLOSING or CLOSED etc | ||
const getReadyState = () => { | ||
const realReadyState = getRealReadyState.call(socket); | ||
// readyState should only be faked when the real readyState is OPEN | ||
return realReadyState === WebSocketFields.OPEN | ||
? fakeReadyState | ||
: realReadyState; | ||
}; | ||
const getReadyState = () => fakeReadyState; | ||
// we have to hook .readyState ourselves | ||
@@ -289,0 +283,0 @@ Object.defineProperty(socket, 'readyState', { |
{ | ||
"name": "@mercuryworkshop/bare-mux", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
107681
938