Browse Source

add websocket key

Yuken Tezuka 3 years ago
parent
commit
8fdeaa627c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/app/src/interfaces/websocket.ts

+ 5 - 0
packages/app/src/interfaces/websocket.ts

@@ -17,6 +17,11 @@ export const SocketEventName = {
   FinishAddPage: 'finishAddPage',
   RebuildingFailed: 'rebuildingFailed',
 
+  // Page Operation
+  PageCreated: 'page:create',
+  PageUpdated: 'page:update',
+  PageDeleted: 'page:delete',
+
 } as const;
 export type SocketEventName = typeof SocketEventName[keyof typeof SocketEventName];