serum-vial
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -275,14 +275,3 @@ "use strict"; | ||
if (message !== undefined) { | ||
const success = ws.send(message); | ||
if (!success) { | ||
retries = 0; | ||
while (ws.getBufferedAmount() > 0) { | ||
await helpers_1.wait(10); | ||
retries += 1; | ||
if (retries > 200) { | ||
ws.end(1008, 'Too much backpressure'); | ||
return; | ||
} | ||
} | ||
} | ||
ws.send(message); | ||
} | ||
@@ -289,0 +278,0 @@ } |
{ | ||
"name": "serum-vial", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=15" |
@@ -340,16 +340,3 @@ import { getLayoutVersion, Market } from '@project-serum/serum' | ||
if (message !== undefined) { | ||
const success = ws.send(message) | ||
if (!success) { | ||
retries = 0 | ||
while (ws.getBufferedAmount() > 0) { | ||
await wait(10) | ||
retries += 1 | ||
if (retries > 200) { | ||
ws.end(1008, 'Too much backpressure') | ||
return | ||
} | ||
} | ||
} | ||
ws.send(message) | ||
} | ||
@@ -356,0 +343,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
275172
4027