socket.io

This commit is contained in:
root 2019-08-12 19:04:30 +05:30
parent 9a67619c06
commit 8d8e9de3d2

View File

@ -17,7 +17,7 @@ export class ChartService {
private socket; private socket;
constructor(public http: HttpClient) { constructor(public http: HttpClient) {
this.socket = io.connect(this.server); this.socket = io.connect(this.server, {transports: ['websocket']});
} }
// public createSocketConnection() { // public createSocketConnection() {