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

reverse Android subscribeToChannel params #189

Open
ggendre opened this issue Apr 25, 2019 · 0 comments
Open

reverse Android subscribeToChannel params #189

ggendre opened this issue Apr 25, 2019 · 0 comments

Comments

@ggendre
Copy link
Contributor

ggendre commented Apr 25, 2019

Reverse arguments to be able to write this :

Cobalt.subscribeToChannel("myChannel", new PubSubInterface() {
        @Override
        public void onMessageReceived(@Nullable JSONObject message, @NonNull String channel) {
            Log.d("hop", "myChannel message received");            
        }
    });

instead of this :

Cobalt.subscribeToChannel(new PubSubInterface() {
        @Override
        public void onMessageReceived(@Nullable JSONObject message, @NonNull String channel) {
            Log.d("hop", "myChannel message received");            
        }
    }, "myChannel");

and update samples accordingly

ggendre added a commit to cobaltians/Cobalt-Android that referenced this issue Apr 25, 2019
ggendre added a commit to Cobaltians-Samples/Samples-Catalog-Android that referenced this issue Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant