nvm fixed it
This commit is contained in:
parent
94b361c21f
commit
c30b4c46e0
2 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,8 @@ const namespaced = true;
|
||||||
|
|
||||||
export const state: NetworkState = {
|
export const state: NetworkState = {
|
||||||
peerType: "none",
|
peerType: "none",
|
||||||
|
connectionStatus: null,
|
||||||
|
peer: null,
|
||||||
chatLog: []
|
chatLog: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,9 @@ export interface SharedNetworkState {
|
||||||
|
|
||||||
export interface NoNetworkState extends SharedNetworkState {
|
export interface NoNetworkState extends SharedNetworkState {
|
||||||
peerType: "none";
|
peerType: "none";
|
||||||
|
connectionStatus: null;
|
||||||
|
connectionError?: Error;
|
||||||
|
peer: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ClientNetworkState extends SharedNetworkState {
|
export interface ClientNetworkState extends SharedNetworkState {
|
||||||
|
|
Loading…
Reference in a new issue