deepstream.io-client-cpp icon indicating copy to clipboard operation
deepstream.io-client-cpp copied to clipboard

Login callback behaviour needs to be reviewed

Open yasserf opened this issue 8 years ago • 1 comments

We need to review the login behaviour in deepstream in general. Having a login callback being called more than once should be invalid behaviour

yasserf avatar Apr 14 '17 10:04 yasserf

proposed new method signature:

login(auth_data
login_callback // (success) => ..., 
client_data_received_callback // (client_data) => ...
)

login_callback is called exactly once, when auth succeeds or fails. it is destructed thereafter client_data_received_callback is called once if auth succeeds and again whenever there is a transition AUTHENTICATING -> OPEN

jdmnd avatar Apr 18 '17 10:04 jdmnd