added type compatibility layer

added text data entry for sending new messages
added websockets connection
added type annots
UNTESTED interop between TSX and Java backend
This commit is contained in:
Zhongheng Liu 2023-12-21 12:34:29 +02:00
commit 49e7eacb0b
No known key found for this signature in database
3 changed files with 47 additions and 8 deletions

View file

@ -6,6 +6,14 @@ enum FileType {
EXEC_BINARY,
UNKNOWN,
}
export type User = {
name: string,
userId: string,
avatar: Avatar
}
export type Avatar = {
pictureUri: string,
}
export type Attachment = {
name: string,
uri: string,
@ -21,3 +29,6 @@ export type ChatMessage = {
message: string,
attachments: Attachment
}
export type ServerMsgType = {
}