makeBaseURL static method
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;
}