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

Why do you send the same message twice? #48

Open
cisen opened this issue Apr 3, 2016 · 4 comments
Open

Why do you send the same message twice? #48

cisen opened this issue Apr 3, 2016 · 4 comments

Comments

@cisen
Copy link

cisen commented Apr 3, 2016

You use socket to send the message and use http(post) to send it again. I think socket is enough.

@raineroviir
Copy link
Owner

I use socket to send it to other clients and http post to send it to the database. What do you mean?

@cisen
Copy link
Author

cisen commented Apr 4, 2016

I mean that it is a waste to transfer data twice after login. You can catch the data by socket and then save it into DB.

@raineroviir
Copy link
Owner

Wow I never though about that!

@digital-flowers
Copy link

actually you should not broadcast the message before saving it to the database :P

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

3 participants