Skip to content

Commit

Permalink
Update chat-topic protocol to include additional fields that the serv…
Browse files Browse the repository at this point in the history
…er sends
  • Loading branch information
anoek committed Dec 13, 2023
1 parent 199a652 commit b3db502
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/protocol/ServerToClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,19 @@ export interface ServerToClient {
topic: string;
/** Tiemstamp (ms) of the topic change */
timestamp: number;

/** User id of the user that changed the topic */
id: number;
/** Username of the user that changed the topic */
username: string;
/** Ranking of the user that changed the topic */
ranking: number;
/** If the user that changed the topic was a professional */
professional: boolean;
/** UI class of the user that changed the topic */
ui_class: string;
/** Country of the user that changed the topic */
country?: string;
}) => void;

/** A user's profile was updated */
Expand Down

0 comments on commit b3db502

Please sign in to comment.