Keep track of client status in Client

This commit is contained in:
Simon Ser 2021-01-22 18:29:22 +01:00
parent 0261bc11e7
commit 41cd2153cf
4 changed files with 70 additions and 43 deletions

View file

@ -1,3 +1,5 @@
import Client from "/lib/client.js";
export const SERVER_BUFFER = "*";
export const BufferType = {
@ -6,11 +8,7 @@ export const BufferType = {
NICK: "nick",
};
export const Status = {
DISCONNECTED: "disconnected",
CONNECTING: "connecting",
REGISTERED: "registered",
};
export const NetworkStatus = Client.Status;
export const Unread = {
NONE: "",