- Live in
src/events
- Have a
.event.ts
suffix. - Contain an
export default async function
that:- Takes a
{ connection: Connection }
argument - Returns
void
- Takes a
Available Events:
connection-added
– called when a connection is addedconnection-removed
– called when a connection is removed