Skip to content

Extended from BaseClass Connection

This class is used in the event emitter class, its used to manage a listener

Properties

boolean Active

Defines if the connection is active or not

number EventId

table Event

{ }

Methods

Connection Constructor(eventId: number, event: table)

thread? Wait(seconds: number?)

Wait until the event gets fired, if seconds were specified, once the specified seconds have elapsed, it will stop waiting

void Disconnect()

Deletes the connection and the listener

Events

Name
Description