microboard-temp 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AiChatMsg,
|
|
1
|
+
import { AiChatMsg, BoardEventMsg, ConfirmationMsg, ModeMsg, PresenceEventMsg, SnapshotRequestMsg, UserJoinMsg } from "index";
|
|
2
2
|
import { SyncBoardEventPack } from "Events/Events";
|
|
3
3
|
export interface AuthMsg {
|
|
4
4
|
type: "Auth";
|
|
@@ -58,19 +58,3 @@ export interface BoardSubscriptionCompletedMsg {
|
|
|
58
58
|
}
|
|
59
59
|
export type EventsMsg = ModeMsg | BoardEventMsg | SnapshotRequestMsg | ConfirmationMsg | BoardSubscriptionCompletedMsg | UserJoinMsg | PresenceEventMsg | AiChatMsg;
|
|
60
60
|
export type SocketMsg = EventsMsg | AuthMsg | AuthConfirmationMsg | LogoutMsg | GetModeMsg | InvalidateRightsMsg | UserJoinMsg | SubscribeMsg | UnsubscribeMsg | VersionCheckMsg | ErrorMsg | ModeMsg | PingMsg | AiChatMsg | BoardAccessDeniedMsg;
|
|
61
|
-
export interface Connection {
|
|
62
|
-
connectionId: number;
|
|
63
|
-
getCurrentUser: () => string;
|
|
64
|
-
connect(): Promise<void>;
|
|
65
|
-
subscribe(board: Board): void;
|
|
66
|
-
unsubscribe(board: Board): void;
|
|
67
|
-
publishPresenceEvent(boardId: string, event: PresenceEventType): void;
|
|
68
|
-
publishAuth(): Promise<void>;
|
|
69
|
-
publishLogout(): void;
|
|
70
|
-
onMessage?: (msg: SocketMsg) => void;
|
|
71
|
-
onAccessDenied: (boardId: string, forceUpdate?: boolean) => void;
|
|
72
|
-
notifyAboutLostConnection: () => void;
|
|
73
|
-
dismissNotificationAboutLostConnection: () => void;
|
|
74
|
-
resetConnection: () => void;
|
|
75
|
-
send: (msg: SocketMsg) => void;
|
|
76
|
-
}
|