subscribe static method

Future<void> subscribe(
  1. dynamic topic
)

Implementation

static Future<void> subscribe(topic) async {
  return await promiseToFuture(subscribeJS(topic));
}