PusherChannelsOptions.fromHost constructor

const PusherChannelsOptions.fromHost({
  1. required String scheme,
  2. required String host,
  3. required String key,
  4. int? port,
  5. bool shouldSupplyMetadataQueries,
  6. PusherChannelsOptionsMetadata metadata,
})

Use this if you have the Pusher Channels installed to your server under your own domain host and the url pattern looks like:

{scheme}://{host}:{port}/app/{key}

The scheme is usually ws or wss.

The key is your Pusher Channels app key.

The host defaults to kDefaultPusherChannelsHost.

The metadata defaults to an instance created with PusherChannelsOptionsMetadata.byDefault

Implementation

const factory PusherChannelsOptions.fromHost({
  required String scheme,
  required String host,
  required String key,
  int? port,
  bool shouldSupplyMetadataQueries,
  PusherChannelsOptionsMetadata metadata,
}) = _HostOptions;