Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created June 7, 2018 21:12
Show Gist options
  • Save dcomartin/b11590d7c6fb3e86f0e26d5c39959c78 to your computer and use it in GitHub Desktop.
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