redeo icon indicating copy to clipboard operation
redeo copied to clipboard

How to trigger an event when a new client being connected

Open alanxone opened this issue 6 years ago • 3 comments

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 avatar Sep 01 '19 07:09 alanxone

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

alanxone avatar Sep 01 '19 12:09 alanxone

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

dim avatar Sep 02 '19 12:09 dim

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

alanxone avatar Sep 02 '19 13:09 alanxone