-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
877f8f2
commit 620a10b
Showing
22 changed files
with
4,026 additions
and
4,152 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
export const API = process.env.STRAFE_API ?? "https://equinox.strafe.chat/v1" | ||
export const GATEWAY = API + "/gateway"; | ||
|
||
/** | ||
* List of opcodes used for interacting with strafe. | ||
*/ | ||
export enum OpCodes { | ||
/** | ||
* Op code used for sending an identify payload to Strafe. | ||
*/ | ||
IDENTIFY = 0, | ||
|
||
/** | ||
* Op code used for receiving the hello event from Strafe. | ||
*/ | ||
HELLO = 1, | ||
|
||
/** | ||
* Op code used for sending heartbeats to Strafe. | ||
*/ | ||
HEARTBEAT = 2, | ||
} |
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,5 +1,6 @@ | ||
export * from "./client/Client"; | ||
export * from "./client/WebsocketClient"; | ||
export * from "./config"; | ||
export * from "./structure/ClientUser"; | ||
export * from "./structure/User"; | ||
export * from "./types"; | ||
export * from "./types"; |
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,5 @@ | ||
{ | ||
"$schema": "https://typedoc.org/schema.json", | ||
"includeVersion": true, | ||
"entryPoints": ["./src/index.ts"], | ||
} |
Oops, something went wrong.