Files
SDK-TypeScript/src/domain/websocket.schema.ts
chatenium 4a34d73c2f
Some checks failed
Setup testing environment and test the code / build (push) Has been cancelled
Code quality improvements and cleanup + Implemented ChatService
2026-04-05 15:19:55 +02:00

28 lines
588 B
TypeScript

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
}