- Live in
src/events - Have a
.event.tssuffix. - Contain an
export default async functionthat:- 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