Instantly share code, notes, and snippets.

Embed
What would you like to do?
var connection = new signalR.HubConnectionBuilder()
.withUrl("/messages", {
accessTokenFactory: () => "MyTokenGoesHere" // Return access token
})
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment