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

How to trigger an event when a new client being connected #24

Open
alanxone opened this issue Sep 1, 2019 · 3 comments
Open

How to trigger an event when a new client being connected #24

alanxone opened this issue Sep 1, 2019 · 3 comments

Comments

@alanxone
Copy link

alanxone commented Sep 1, 2019

Hi there,

So far redeo provides me an efficient way to implement TCP services, however, I wonder how can the server understand there's a new connection being connected.

What I'm trying to achieve is, processing something right after someone connected to server, and it may even not send any commands yet.

@alanxone alanxone changed the title How to trigger an event when a new client connected How to trigger an event when a new client being connected Sep 1, 2019
@alanxone
Copy link
Author

alanxone commented Sep 1, 2019

I think I’m able to do this in my own fork, but just wanna make sure this isn’t built-in in redeo

@dim
Copy link
Member

dim commented Sep 2, 2019

@AndrewTW would you be able to submit a PR for a callback option on registering a new client?

@alanxone
Copy link
Author

alanxone commented Sep 2, 2019

@dim
Sure!
I'm working on it, but maybe not so soon (plus tests) cause I get some heavy workload recently.

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