Skip to content

Commit

Permalink
Fix: Get Channel from headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam authored Mar 31, 2023
1 parent 20649eb commit da78152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket/socket.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class SocketGateway
)}`,
);
to = getUuidByString('uci-pwa');
const userId = 'ucipwa:' + client.handshake.headers.userPhone;
const userId = client.handshake.headers.channel + client.handshake.headers.userPhone;
content.from = userId;
this.appService.requestToAdapter({ content, to }, this.server);
return {};
Expand Down

0 comments on commit da78152

Please sign in to comment.