Skip to content

Commit aece33d

Browse files
Merge branch 'main' into fix/job-fetching-and-pagination
2 parents eb4b460 + f9b2d95 commit aece33d

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

.vscode/settings.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"sqltools.connections": [
3+
{
4+
"mysqlOptions": {
5+
"authProtocol": "default",
6+
"enableSsl": "Disabled"
7+
},
8+
"previewLimit": 50,
9+
"server": "localhost",
10+
"port": 3306,
11+
"driver": "MariaDB",
12+
"name": "MySQL",
13+
"database": "codebuilder_main",
14+
"username": "codebuilder",
15+
"password": "joker123"
16+
}
17+
]
18+
}

src/events/events.gateway.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ export class EventsGateway implements OnGatewayConnection, OnGatewayDisconnect {
4141

4242
public handleConnection(client: Socket) {
4343
const { user_id } = this.getClientQuery(client);
44-
44+
45+
console.log('WssGateway: handleConnection', { user_id });
4546

4647
return this.broadcastAll('event', { connected: user_id });
4748
}
4849

4950
public handleDisconnect(client: Socket) {
5051
const { user_id } = this.getClientQuery(client);
5152

53+
console.log('WssGateway: handleDisconnect', { user_id });
5254

5355
return this.broadcastAll('event', { disconnected: user_id });
5456
}
@@ -66,7 +68,6 @@ export class EventsGateway implements OnGatewayConnection, OnGatewayDisconnect {
6668

6769
@SubscribeMessage('identity')
6870
identity(@MessageBody() data: number): number {
69-
7071
return data;
7172
}
7273
}

src/wss/wss.gateway.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ export class WssGateway implements OnGatewayConnection, OnGatewayDisconnect {
4242
this.server.emit(event_name, message);
4343
}
4444

45-
handleConnection(client: io.Socket) {
46-
47-
client.join('msgRoom');
45+
handleConnection(client: io.Socket) { client.join('msgRoom');
4846
const { user_id } = this.getClientQuery(client);
4947

5048
this.logService.info(`WssGateway: handleConnection ${user_id}`);

0 commit comments

Comments
 (0)