diff --git a/src/io.ts b/src/io.ts index 061e40f9b699ddb949032874b723681b7bbea4b1..ce8a240f1439a72d4c61cd0c3682e83c6b08f710 100644 --- a/src/io.ts +++ b/src/io.ts @@ -188,7 +188,8 @@ export class Io { let endpoint = 'wss://' + this.options.apihost + '/v0/websocket' // XXX quick and dirty: use no ssl for APIHOST other than official - if (!/api\.wechaty\.io/.test(this.options.apihost)) { + // FIXME: use a configuarable VARIABLE for the domain name at here: + if (!/api\.chatie\.io/.test(this.options.apihost)) { endpoint = 'ws://' + this.options.apihost + '/v0/websocket' }