Code quality improvements and cleanup + Implemented ChatService
Some checks failed
Setup testing environment and test the code / build (push) Has been cancelled

This commit is contained in:
2026-04-05 15:19:55 +02:00
parent ec418ca7c9
commit 4a34d73c2f
20 changed files with 380 additions and 39 deletions

View File

@@ -0,0 +1,28 @@
export interface WSListenerPipe {
identifier: string; // Any identifier that is unique to the service (chatid, networkId, etc...)
onNewConnId: (newConnId: string) => void;
onNewMessage: MessageListener;
}
export type MessageListener = (action: string, data: string) => void
export interface WSMakeTokenReq {
userid: string
}
export interface WSMakeTokenResp {
token: string
}
export interface WSConnIdPayload {
connId: string
}
export interface WSConnIdPayload {
connId: string
}
export interface WSMessagePayload {
action: string,
data: string
}