You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, thanks for the great library.
In the Channel.join() method I noticed that the onError() callback for the RPC is empty, i.e. it will hide errors on failed calls to the server:
I guess this problem applies to send as well, and one might want to get a callback on onSuccess.
Would it be odd to accept new AsyncCallback<String> as an argument to both join and send?
(Or as optional argument, additional method).
I'm not sure about the whole token stuff, but for onSuccess the success could be delegated.
I think that could work, especially as an optional argument in an additional method. A usage example for new users would help avoid confusion between the two versions. For the callback passed to join(AsyncCallback<String>) you might also want to explain in a comment/javadoc the String they're receiving in onSuccess(String).
AsyncCallback<Void> is yet another option, but maybe not as widely useful as AsyncCallback<String>.
Hi there, thanks for the great library.
In the Channel.join() method I noticed that the onError() callback for the RPC is empty, i.e. it will hide errors on failed calls to the server:
This is probably a rare event, but potentially tricky to debug when it happens.
I can think of a few potential solutions. Here's the first two:
The text was updated successfully, but these errors were encountered: