We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi How can I add parameter to the connect request?
This is what I do on Java and I want to do sth like this:
Platform.loadPlatformComponent(new AndroidPlatformComponent()); Credentials credentials = new Credentials() { @Override public void prepareRequest(Request request) { request.addHeader("userId", 3 + ""); } }; String serverUrl = "http://xxxxxx/"; mHubConnection = new HubConnection(serverUrl); mHubConnection.setCredentials(credentials); String SERVER_HUB_CHAT = "notificationHub"; mHubProxy = mHubConnection.createHubProxy(SERVER_HUB_CHAT); ClientTransport clientTransport = new ServerSentEventsTransport(mHubConnection.getLogger()); SignalRFuture<Void> signalRFuture = mHubConnection.start(clientTransport); signalRFuture.get(); mHubProxy.on("RecieveNotification", new SubscriptionHandler1<String>() { @Override public void run(final String string) { .... } }
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hey @AliEasy, currently there is no way to set headers. But i'm planning to add this. Should be available in the next update.
Sorry, something went wrong.
@AliEasy now you should be able to set headers. Just grab the latest version from pub.
AyonAB
Successfully merging a pull request may close this issue.
Hi
How can I add parameter to the connect request?
This is what I do on Java and I want to do sth like this:
Thanks in advance.
The text was updated successfully, but these errors were encountered: