-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 404 for drawing authorization proccess
- Loading branch information
1 parent
b7b74dc
commit 7de9244
Showing
3 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
export enum WsCloseCodeEnum { | ||
WS_CLIENT_BAD_REQUEST_CODE = 4400, | ||
WS_CLIENT_UNAUTHORISED_CONNECTION_CODE = 4401, | ||
WS_CLIENT_NOT_FOUND_CODE = 4404, | ||
WS_CLIENT_ESTABLISHING_CONNECTION_CODE = 4500, | ||
} | ||
export enum WsCloseMessageEnum { | ||
WS_CLIENT_BAD_REQUEST_MESSAGE = 'Document name is mandatory in url or Tldraw Tool is turned off.', | ||
WS_CLIENT_UNAUTHORISED_CONNECTION_MESSAGE = "Unauthorised connection - you don't have permission to this drawing.", | ||
WS_CLIENT_NOT_FOUND_MESSAGE = 'Drawing not found.', | ||
WS_CLIENT_ESTABLISHING_CONNECTION_MESSAGE = 'Unable to establish websocket connection. Try again later.', | ||
} |