makeBaseURL static method

String makeBaseURL(
  1. ConnectionOptions config
)

Create base URL based on connection options

Implementation

static String makeBaseURL(ConnectionOptions config) {
  var url = (config.secure ?? false) ? 'wss://' : 'ws://';
  return url + config.host + '/v0/channels?apikey=' + config.apiKey;
}