@push-rpc/websocket
Advanced tools
Comparing version 1.0.2 to 1.0.3
export { createWebsocket } from "./client"; | ||
export { createWebsocketServer } from "./server"; | ||
export { createWebsocketServer, wrapWebsocket } from "./server"; |
@@ -7,1 +7,2 @@ "use strict"; | ||
exports.createWebsocketServer = server_1.createWebsocketServer; | ||
exports.wrapWebsocket = server_1.wrapWebsocket; |
@@ -12,3 +12,3 @@ "use strict"; | ||
onConnection: function (h) { | ||
wss.on("connection", function (ws, req) { return h(wrapWebsocket(ws), req); }); | ||
wss.on("connection", function (ws, req) { return h(wrapWebsocket(ws), req, ws.protocol); }); | ||
}, | ||
@@ -15,0 +15,0 @@ close: function (h) { return wss.close(h); }, |
{ | ||
"name": "@push-rpc/websocket", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
export {createWebsocket} from "./client" | ||
export {createWebsocketServer} from "./server" | ||
export {createWebsocketServer, wrapWebsocket} from "./server" |
@@ -14,3 +14,3 @@ import * as WebSocket from "ws" | ||
onConnection: h => { | ||
wss.on("connection", (ws, req) => h(wrapWebsocket(ws), req)) | ||
wss.on("connection", (ws, req) => h(wrapWebsocket(ws), req, ws.protocol)) | ||
}, | ||
@@ -17,0 +17,0 @@ close: h => wss.close(h), |
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
6004
171