Skip to content

Commit

Permalink
HOTFIX : URL Socket
Browse files Browse the repository at this point in the history
  • Loading branch information
FazCodeFR committed Apr 4, 2024
1 parent eba42f6 commit f0fd65e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/services/web-socket.service.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Injectable } from '@angular/core';
import { io, Socket } from 'socket.io-client';
import { environment } from 'src/environments/environment';

@Injectable({
providedIn: 'root',
})
export class WebSocketService {
private socket: Socket = io('http://localhost:3000');
api = environment.api.serverUrl;
private socket: Socket = io(this.api);

// public sendMessage(message: string): void {
// this.socket.emit('message', message);
Expand Down

0 comments on commit f0fd65e

Please sign in to comment.