nextrush 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -20
- package/dist/index.d.mts +737 -9
- package/dist/index.d.ts +737 -9
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -8695,18 +8695,14 @@ Content-Length: 0\r
|
|
|
8695
8695
|
\r
|
|
8696
8696
|
`;
|
|
8697
8697
|
try {
|
|
8698
|
-
socket.write(response)
|
|
8699
|
-
|
|
8698
|
+
socket.write(response, (err) => {
|
|
8699
|
+
if (err) {
|
|
8700
|
+
console.error("Failed to write WebSocket rejection:", err);
|
|
8701
|
+
}
|
|
8700
8702
|
try {
|
|
8701
8703
|
socket.end();
|
|
8702
8704
|
} catch {
|
|
8703
8705
|
}
|
|
8704
|
-
setTimeout(() => {
|
|
8705
|
-
try {
|
|
8706
|
-
socket.destroy();
|
|
8707
|
-
} catch {
|
|
8708
|
-
}
|
|
8709
|
-
}, 10);
|
|
8710
8706
|
});
|
|
8711
8707
|
} catch (error) {
|
|
8712
8708
|
console.error("Failed to reject WebSocket handshake:", error);
|
|
@@ -9025,6 +9021,7 @@ exports.HttpTransport = HttpTransport;
|
|
|
9025
9021
|
exports.LogLevel = LogLevel;
|
|
9026
9022
|
exports.LoggerPlugin = LoggerPlugin;
|
|
9027
9023
|
exports.NODE_VERSION = NODE_VERSION;
|
|
9024
|
+
exports.NextRushApplication = NextRushApplication;
|
|
9028
9025
|
exports.RequestEnhancer = RequestEnhancer;
|
|
9029
9026
|
exports.ResponseEnhancer = ResponseEnhancer;
|
|
9030
9027
|
exports.StaticFilesPlugin = StaticFilesPlugin;
|