initClient static method
Initializes the client with the adapter function and options.
Implementation
static b.Client initClient(
Future<Message> Function(Message im, Serializer iis) adapter,
ClientOptions options) {
JSPromise outerAdapter(b.Message om, b.Serializer os) {
final m = Message.fromJS(om);
final s = Serializer.fromJS(os);
return adapter(m, s).then((response) {
return response._message;
}).toJS;
}
return b.Client(outerAdapter.toJS, options._options);
}