@trufflesuite/uws-js-unofficial
Advanced tools
Comparing version 20.4.0-unofficial.1 to 20.4.0-unofficial.2
@@ -31,3 +31,3 @@ /* | ||
try { | ||
return require('./binaries/uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node'); | ||
return require('../binaries/uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node'); | ||
} catch (e) { | ||
@@ -34,0 +34,0 @@ console.warn('This version of µWS is not compatible with your Node.js build:\n\n' + e.toString()); |
@@ -20,2 +20,3 @@ "use strict"; | ||
constructor(internalWs) { | ||
this._fragBinState = false; | ||
this.internalWs = internalWs; | ||
@@ -81,11 +82,12 @@ // `nodebuffer` is already the default, but I just wanted to be explicit | ||
sendFirstFragment(message, isBinary, compress = false) { | ||
this._fragBinState = isBinary; | ||
this.internalWs.send(message, { fin: false, binary: isBinary, compress }); | ||
return true; | ||
} | ||
sendFragment(message, isBinary, compress = false) { | ||
this.internalWs.send(message, { fin: false, binary: isBinary, compress }); | ||
sendFragment(message, compress = false) { | ||
this.internalWs.send(message, { fin: false, binary: this._fragBinState, compress }); | ||
return true; | ||
} | ||
sendLastFragment(message, isBinary, compress = false) { | ||
this.internalWs.send(message, { fin: true, binary: isBinary, compress }); | ||
sendLastFragment(message, compress = false) { | ||
this.internalWs.send(message, { fin: true, binary: this._fragBinState, compress }); | ||
return true; | ||
@@ -158,2 +160,2 @@ } | ||
exports.WebSocket = WebSocket; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2Vic29ja2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2ZhbGxiYWNrL3dlYnNvY2tldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFPQSxNQUFNLGVBQWUsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLDBCQUEwQixFQUFFLE1BQU0sQ0FBQyxDQUFDO0FBRXhFOzs7Ozs7R0FNRztBQUNILFN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25DLE9BQU8sQ0FDTCxLQUF1QixFQUN2QixPQUF5QixFQUN6QixRQUE4QixFQUM5QixRQUE4QjtRQUU5QixPQUFPLEtBQUssQ0FBQztJQUNmLENBQUM7SUFFRCxJQUFJLENBQUMsRUFBYztRQUNqQixFQUFFLEVBQUUsQ0FBQztJQUNQLENBQUM7SUFFRCxzQ0FBc0M7SUFDdEMsbUNBQW1DO0lBQ25DLGdCQUFnQjtRQUNkLE9BQU8sSUFBSSxXQUFXLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDNUIsQ0FBQztJQUVELHNCQUFzQjtRQUNwQixNQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLEdBQUcsQ0FBQztRQUNoQyxNQUFNLEdBQUcsR0FBRyxJQUFJLFdBQVcsQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDeEMsTUFBTSxPQUFPLEdBQUcsSUFBSSxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDcEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxFQUFFLEVBQUU7WUFDbkMsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDaEM7UUFDRCxPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7Q0FDRjtBQTFLRCw4QkEwS0MifQ== |
{ | ||
"name": "@trufflesuite/uws-js-unofficial", | ||
"version": "20.4.0-unofficial.1", | ||
"version": "20.4.0-unofficial.2", | ||
"description": "Simple, secure, & standards compliant web server for the most demanding of applications.", | ||
@@ -5,0 +5,0 @@ "main": "src/uws.js", |
@@ -98,3 +98,5 @@ import { | ||
private _fragBinState: boolean = false; | ||
sendFirstFragment(message: RecognizedString, isBinary: boolean, compress: false = false){ | ||
this._fragBinState = isBinary; | ||
this.internalWs.send(message, {fin: false, binary: isBinary, compress}); | ||
@@ -104,9 +106,9 @@ return true; | ||
sendFragment(message: RecognizedString, isBinary: boolean, compress: false = false){ | ||
this.internalWs.send(message, {fin: false, binary: isBinary, compress}); | ||
sendFragment(message: RecognizedString, compress: false = false){ | ||
this.internalWs.send(message, {fin: false, binary: this._fragBinState, compress}); | ||
return true; | ||
} | ||
sendLastFragment(message: RecognizedString, isBinary: boolean, compress: false = false){ | ||
this.internalWs.send(message, {fin: true, binary: isBinary, compress}); | ||
sendLastFragment(message: RecognizedString, compress: false = false){ | ||
this.internalWs.send(message, {fin: true, binary: this._fragBinState, compress}); | ||
return true; | ||
@@ -113,0 +115,0 @@ } |
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
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
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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
58440259
5489