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

api设计问题 #57

Closed
zey28 opened this issue Jul 7, 2020 · 3 comments
Closed

api设计问题 #57

zey28 opened this issue Jul 7, 2020 · 3 comments

Comments

@zey28
Copy link

zey28 commented Jul 7, 2020

你好 ,为什么这个工程的聊天信息获取都是放到了websocket中,而不是像vue-chat放在http中获取呢?有什么考量吗

@aermin
Copy link
Owner

aermin commented Jul 7, 2020

之所以只在登录注册的时候用http请求,而且之后用websocket,是想着登录成功后websocket连接了,这时顺便用websocket传输会比http请求更省。

@zey28
Copy link
Author

zey28 commented Jul 7, 2020

哦 谢谢, 了解了 ,刚才看了你的说明aermin/blog#60, 谢谢你的开源

@aermin
Copy link
Owner

aermin commented Jul 7, 2020

😄

@aermin aermin closed this as completed Jul 7, 2020
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