PusherChannelsOptions.fromHost constructor
const
PusherChannelsOptions.fromHost({})
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;