Socket.io updated

This commit is contained in:
root 2019-08-23 17:47:20 +05:30
parent 2588ed14bc
commit 596c6c5f04

View File

@ -62,7 +62,7 @@ export class ChartService {
public getLatestblockdetails() {
if(this.socket==null){
this.socket = io.connect(this.server, {requestTimeout:100000000,query: 'network='+this.socketnetwork});
this.socket = io.connect(this.server, {transport: 'websocket', requestTimeout:100000000,query: 'network='+this.socketnetwork});
this.socket.heartbeatTimeout = 200000
}
return Observable.create(observer => {