static Future<void> subscribe(String topic) async { final promise = subscribeJS(topic.toJS) as JSPromise; await promise.toDart; }