This commit is contained in:
syuilo 2017-02-19 15:32:10 +09:00
parent 7609892c1f
commit d392da64ab
14 changed files with 34 additions and 20 deletions

View file

@ -5,7 +5,7 @@ module.exports = me => {
let state = 'initializing';
const stateEv = riot.observable();
const event = riot.observable();
const host = CONFIG.api.url.replace('http', 'ws');
const host = CONFIG.apiUrl.replace('http', 'ws');
const socket = new ReconnectingWebSocket(`${host}?i=${me.token}`);
socket.onopen = () => {