Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Event Listening #2

Closed
yasserf opened this issue May 15, 2016 · 1 comment
Closed

Event Listening #2

yasserf opened this issue May 15, 2016 · 1 comment

Comments

@yasserf
Copy link
Contributor

yasserf commented May 15, 2016

We want to implement event listening so that we can do the following:

public DeepstreamClient listen( String regex, ListenCallback listenCallback ) {
   ...
   return this;
}

public DeepstreamClient unlisten( String regex, ListenCallback listenCallback ) {
   ...
   return this;
}

// This API will change going on, but only a little
public class ListenCallback() {
   public void onListen( recordName, isSubscribed ) {
   }
}

Be good to use a ported version of:

https://github.com/deepstreamIO/deepstream.io-client-js/blob/master/src/utils/listener.js

@laoluani
Copy link

shotgun

@yasserf yasserf closed this as completed Aug 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants