Skip to content

Instantly share code, notes, and snippets.

@burkeholland
Created January 28, 2019 20:24
Show Gist options
  • Select an option

  • Save burkeholland/897694b0f1b77524205369bd555a7a8d to your computer and use it in GitHub Desktop.

Select an option

Save burkeholland/897694b0f1b77524205369bd555a7a8d to your computer and use it in GitHub Desktop.
const apiBaseUrl = "https://i-enjoy-lamp.azurewebsites.net";
mounted() {
let connection = new signalR.HubConnectionBuilder()
.withUrl(`${apiBaseUrl}/api`).build();
connection.on(
"colorChanged",
(hex) => {
this.colors = { hex: `#${hex}` };
}
);
connection.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment