Closed re2005 closed 2 months ago
Hi everyone, Thanks for this awesome lib.
I'm using it with my key: client = Zilliqa({ apiKey: 'abc' });
this.client.subscribe({ event: 'addressTx', param: this.contract }, console.log);
Getting this error:
SocketProtocolError {name: "SocketProtocolError", message: "Client connection establishment timed out", code: 4007, stack: "SocketProtocolError: Client connection establishme…es/socketcluster-client/lib/sctransport.js:86:10)"} code: 4007 message: "Client connection establishment timed out" name: "SocketProtocolError" stack: "SocketProtocolError: Client connection establishment timed out↵ at SCClientSocket._onSCClose (webpack-internal:///./node_modules/socketcluster-client/lib/scclientsocket.js:632:15)↵ at SCTransport.eval (webpack-internal:///./node_modules/socketcluster-client/lib/scclientsocket.js:304:12)↵ at SCTransport.Emitter.emit (webpack-internal:///./node_modules/socketcluster-client/node_modules/component-emitter/index.js:133:20)↵ at SCTransport._onClose (webpack-internal:///./node_modules/socketcluster-client/lib/sctransport.js:217:28)↵ at eval (webpack-internal:///./node_modules/socketcluster-client/lib/sctransport.js:86:10)" proto: Error
Any idea if there's something wrong with the subscribers ?
Cheers
Hi everyone, Thanks for this awesome lib.
I'm using it with my key: client = Zilliqa({ apiKey: 'abc' });
this.client.subscribe({ event: 'addressTx', param: this.contract }, console.log);
Getting this error:
SocketProtocolError {name: "SocketProtocolError", message: "Client connection establishment timed out", code: 4007, stack: "SocketProtocolError: Client connection establishme…es/socketcluster-client/lib/sctransport.js:86:10)"} code: 4007 message: "Client connection establishment timed out" name: "SocketProtocolError" stack: "SocketProtocolError: Client connection establishment timed out↵ at SCClientSocket._onSCClose (webpack-internal:///./node_modules/socketcluster-client/lib/scclientsocket.js:632:15)↵ at SCTransport.eval (webpack-internal:///./node_modules/socketcluster-client/lib/scclientsocket.js:304:12)↵ at SCTransport.Emitter.emit (webpack-internal:///./node_modules/socketcluster-client/node_modules/component-emitter/index.js:133:20)↵ at SCTransport._onClose (webpack-internal:///./node_modules/socketcluster-client/lib/sctransport.js:217:28)↵ at eval (webpack-internal:///./node_modules/socketcluster-client/lib/sctransport.js:86:10)" proto: Error
Any idea if there's something wrong with the subscribers ?
Cheers