Events
constEvents:object
Type Declaration
Section titled “Type Declaration”on: <
T>(filter,handler) =>Effect<void,never,Scope>
Type Parameters
Section titled “Type Parameters”T extends "logout" | "message" | "monsterDeath" | "itemDrop" | "afk" | "zone" | "mapJoined" | "cellChanged" | "playerJoined" | "playerLeft" | "playerState" | "monsterRespawn" | "auraAdded" | "auraRemoved" | "itemAdded" | "questCompleted"
Parameters
Section titled “Parameters”filter
Section titled “filter”EventFilter<T>
handler
Section titled “handler”Returns
Section titled “Returns”Effect<void, never, Scope>
subscribe
Section titled “subscribe”subscribe: <
T>(filter) =>Effect<Subscription<EventOf<T>>,never,Scope>
Type Parameters
Section titled “Type Parameters”T extends "logout" | "message" | "monsterDeath" | "itemDrop" | "afk" | "zone" | "mapJoined" | "cellChanged" | "playerJoined" | "playerLeft" | "playerState" | "monsterRespawn" | "auraAdded" | "auraRemoved" | "itemAdded" | "questCompleted"
Parameters
Section titled “Parameters”filter
Section titled “filter”EventFilter<T>
Returns
Section titled “Returns”Effect<Subscription<EventOf<T>>, never, Scope>