im-js / im.js

一个基于 react-native + mobx + socket.io + node 的仿微信 JS-Wechat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

想请教你一个问题 ?

PeterLocas opened this issue · comments

假如websocket 中的服务其地址是可配置的,那下面这个应该怎么写
const chatSocketStore = new ChatSocketStore();
const profileStore = new ProfileStore(chatSocketStore);

export {
chatSocketStore,
profileStore
};

就是ChatSocketStore中地址可以随时改变,改变后我需要吧ChatSocketStore重新new一下,可以给一点思路吗 @plusmancn