revite/src/context/revoltjs/RevoltClient.tsx
Paul 27eeb3acd2 Add Redux and reducers.
Load i18n files and add dayjs.
2021-06-18 17:57:08 +01:00

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"])
});