Skip to content

Commit

Permalink
integration of grpc
Browse files Browse the repository at this point in the history
Signed-off-by: Manik2708 <[email protected]>
  • Loading branch information
Manik2708 committed Dec 28, 2024
1 parent bae5186 commit dfbc00d
Show file tree
Hide file tree
Showing 16 changed files with 652 additions and 141 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
src/hichat-1c68d-firebase-adminsdk-ov8j7-0df3df5a5e.json
/.env
/QueueService/.idea
/.vscode
/.idea
# Logs
logs
*.log
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

141 changes: 131 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"docs": "typedoc"
},
"dependencies": {
"@grpc/grpc-js": "^1.12.5",
"@grpc/proto-loader": "^0.7.13",
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
Expand Down Expand Up @@ -74,6 +76,7 @@
"ts-jest": "^29.1.2",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"ts-proto": "^2.6.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.3"
},
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Constants/injection_tokens.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export class InjectionTokens {
static RedisClient: string = 'RedisClient';
static CasClient: string = 'CasClient';
static IoServer: string = 'IoServer';
static GRPClientAddress: string = 'GRPClientAddress';
static CreateQueue: string = 'CreateQueue';
}
6 changes: 1 addition & 5 deletions src/Controllers/Chats/chats_controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ import { ConflictError, ConflictErrorTypes } from '../../Errors/conflict_error';

@Controller(ControllerPaths.CHATS_CONTROLLER)
export class ChatsController {
private createQueue: CreateQueue;
constructor(
private readonly chatMessageService: ChatMessageForUserService,
@Inject(InjectionTokens.CreateQueue) createQueue: CreateQueue,
) {
this.createQueue = createQueue;
}
) {}

@Post(ChatRoutes.SEND_CHAT_MESSAGE)
async sendChatMessage(
Expand Down
Loading

0 comments on commit dfbc00d

Please sign in to comment.