configure method

void configure(
  1. dynamic client
)

Configure a standalone client for feathers js

client is the http client or socketio that will be used to communicate with feathers js server

This should be used when you want standalone rest|socketio client

Implementation

void configure(dynamic client) {
  if (client is FlutterFeathersjsSocketio) {
    this.standaloneSocketio = client;
    this.client = "socketio";
  } else if (client is FlutterFeathersjsRest) {
    this.standaloneRest = client;
    this.client = "rest";
  } else {
    throw new FeatherJsError(
        type: FeatherJsErrorType.CONFIGURATION_ERROR,
        error: "Client is not a valid feathers js client. ");
  }
}