async bindToEvent(id, url, polling = false) {
		let bound = false;

		do {
			bound = await send(this.ws, prefixEvent + id, prefixBind + url, !polling ? "bound" : undefined) === "bound";

			if (!bound) {
				await this.sleep(1000);
			}
		} while (polling && !bound);
	}
/**
	 * Binds to an event.
	 *
	 * If polling is specified it will continuously attempt to bind every second.
	 * Use this flag if the event that is wanting to be bound to may not be ready.
	 * For example changing scenes and the event is in that scene.
	 */
Binds to an event.
If polling is specified it will continuously attempt to bind every second.
Use this flag if the event that is wanting to be bound to may not be ready.
For example changing scenes and the event is in that scene.
Binds to an event . If polling is specified it will continuously attempt to bind every second . Use this flag if the event that is wanting to be bound to may not be ready . For example changing scenes and the event is in that scene .
async bindToEvent(id, url, polling = false) {
		let bound = false;
		do {
			bound = await send(this.ws, prefixEvent + id, prefixBind + url, !polling ? "bound" : undefined) === "bound";
			if (!bound) {
				await this.sleep(1000);
			}
		} while (polling && !bound);
	}
async bindToEvent ( id , url , polling = false ) { let bound = false ; do { bound = await send ( this . ws , prefixEvent + id , prefixBind + url , ! polling ? "bound" : undefined ) === "bound" ; if ( ! bound ) { await this . sleep ( 1000 ) ; } } while ( polling && ! bound ) ; }
Binds to an event.
Binds to an event .