Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想请教你一个问题 ? #19

Closed
PeterLocas opened this issue Nov 23, 2017 · 0 comments
Closed

想请教你一个问题 ? #19

PeterLocas opened this issue Nov 23, 2017 · 0 comments

Comments

@PeterLocas
Copy link

PeterLocas commented Nov 23, 2017

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

export {
chatSocketStore,
profileStore
};

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants