fix debug log showing in release

This commit is contained in:
2020-11-29 05:56:43 +01:00
parent 7c8f865e51
commit 1627c12f9d
3 changed files with 1 additions and 25 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "rpclibrary", "name": "rpclibrary",
"version": "2.3.0", "version": "2.3.1",
"description": "rpclibrary is a websocket RPC library", "description": "rpclibrary is a websocket RPC library",
"main": "./js/Index.js", "main": "./js/Index.js",
"repository": { "repository": {
-5
View File
@@ -18,12 +18,7 @@ export class PromiseIO {
this.io = socketio(httpServer, { cookie:false }) this.io = socketio(httpServer, { cookie:false })
this.io!.on('connection', (clientSocket: Socket) => { this.io!.on('connection', (clientSocket: Socket) => {
console.log(this.listeners);
clientSocket.use((packet, next) => { clientSocket.use((packet, next) => {
console.log(this.listeners[packet[0]]);
console.log(packet[0]);
next() next()
}) })
-19
View File
@@ -870,25 +870,6 @@ describe("attaching handlers before connecting", () => {
}) })
}) })
it("fires error if call is unknown", (done) => {
const serv = new RPCServer().listen(21004)
const sock = new RPCSocket(21004, 'localhost')
sock.on('error', (err) => {
sock.close()
serv.close()
done()
})
sock.connect().then(_ => {
sock.call("unknownRPC123", "AAAAA").catch(e => { }).then(x => {
done(new Error("unexpected return value"))
})
}).catch(e => {
done(e)
})
})
/* /*
* ## 1.11.0 breaking ## * ## 1.11.0 breaking ##
* *