mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
22 lines
382 B
TypeScript
22 lines
382 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import * as io from 'socket.io-client';
|
|
import { Observable } from 'rxjs';
|
|
import { Socket } from 'ngx-socket-io';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class WebsocketService {
|
|
|
|
message = '';
|
|
messages = [];
|
|
currentUser = '';
|
|
|
|
constructor(private socket: Socket) { }
|
|
|
|
connect(){
|
|
return this.socket.connect();
|
|
}
|
|
|
|
}
|