onRequest function

void onRequest(
  1. String cmd,
  2. Function handler
)

Implementation

external void onRequest(String cmd, Function handler);