@v4fire/core
Version:
V4Fire core library
29 lines (24 loc) • 556 B
text/typescript
/*!
* V4Fire Core
* https://github.com/V4Fire/Core
*
* Released under the MIT license
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/
import { EventEmitter2 as EventEmitter } from 'eventemitter2';
import type { NetState } from 'core/net/interface';
/**
* Event emitter to broadcast network events
*/
export const
emitter = new EventEmitter({maxListeners: 100, newListener: false});
/**
* @deprecated
* @see [[emitter]]
*/
export const
event = emitter;
export const state: NetState = {
status: undefined,
lastOnline: undefined
};