The following attribute types can be used in the event object passed to the emit function:

Type

Description

UInt16

16-bit unsigned integer

Int16

16-bit integer

UInt32

32-bit unsigned integer

Int32

32-bit integer

String

String

IPAddr

IP address

Int64

64-bit integer

UInt64

64-bit unsigned integer

Boolean

Boolean

Emitters can be closed individually with emitter.close() or globally with Emitter.closeAll(). This releases all resources allocated in the emscripten subsystem and fires a System::Shutdown event if the heartbeat is enabled.