mirror of
https://github.com/revoltchat/revite.git
synced 2025-01-07 21:24:44 -05:00
27eeb3acd2
Load i18n files and add dayjs.
19 lines
424 B
TypeScript
19 lines
424 B
TypeScript
import { Client } from 'revolt.js';
|
|
|
|
export enum ClientStatus {
|
|
LOADING,
|
|
READY,
|
|
OFFLINE,
|
|
DISCONNECTED,
|
|
CONNECTING,
|
|
RECONNECTING,
|
|
ONLINE
|
|
}
|
|
|
|
export const RevoltJSClient = new Client({
|
|
autoReconnect: false,
|
|
apiURL: process.env.API_SERVER,
|
|
debug: process.env.NODE_ENV === "development",
|
|
// Match sw.js#13
|
|
// db: new Db("state", 3, ["channels", "servers", "users", "members"])
|
|
});
|