-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #506 from MatrixAI/feature-websocket_client
Websocket for Client Service API
- Loading branch information
Showing
22 changed files
with
2,406 additions
and
411 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ErrorPolykey, sysexits } from '../errors'; | ||
|
||
class ErrorRPC<T> extends ErrorPolykey<T> {} | ||
|
||
class ErrorRPCClient<T> extends ErrorRPC<T> {} | ||
|
||
class ErrorClientAuthMissing<T> extends ErrorRPCClient<T> { | ||
static description = 'Authorisation metadata is required but missing'; | ||
exitCode = sysexits.NOPERM; | ||
} | ||
|
||
class ErrorClientAuthFormat<T> extends ErrorRPCClient<T> { | ||
static description = 'Authorisation metadata has invalid format'; | ||
exitCode = sysexits.USAGE; | ||
} | ||
|
||
class ErrorClientAuthDenied<T> extends ErrorRPCClient<T> { | ||
static description = 'Authorisation metadata is incorrect or expired'; | ||
exitCode = sysexits.NOPERM; | ||
} | ||
|
||
export { | ||
ErrorRPC, | ||
ErrorRPCClient, | ||
ErrorClientAuthMissing, | ||
ErrorClientAuthFormat, | ||
ErrorClientAuthDenied, | ||
}; |
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
Oops, something went wrong.