提交 745a0050 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix not use ssl for api.chatie.io

上级 5a9e70cd
......@@ -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'
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册