fix debug log showing in release
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rpclibrary",
|
||||
"version": "2.3.0",
|
||||
"version": "2.3.1",
|
||||
"description": "rpclibrary is a websocket RPC library",
|
||||
"main": "./js/Index.js",
|
||||
"repository": {
|
||||
|
||||
@@ -18,12 +18,7 @@ export class PromiseIO {
|
||||
this.io = socketio(httpServer, { cookie:false })
|
||||
|
||||
this.io!.on('connection', (clientSocket: Socket) => {
|
||||
console.log(this.listeners);
|
||||
|
||||
clientSocket.use((packet, next) => {
|
||||
console.log(this.listeners[packet[0]]);
|
||||
|
||||
console.log(packet[0]);
|
||||
next()
|
||||
})
|
||||
|
||||
|
||||
@@ -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 ##
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user