Created
January 28, 2019 20:24
-
-
Save burkeholland/897694b0f1b77524205369bd555a7a8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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