Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created June 7, 2018 21:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dcomartin/b11590d7c6fb3e86f0e26d5c39959c78 to your computer and use it in GitHub Desktop.
const connection = new signalR.HubConnectionBuilder()
.withUrl(`/chatHub?token=${token}`)
.configureLogging(signalR.LogLevel.Information)
.build();
connection.start().catch(err => console.error(err.toString()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment