Skip to content

Instantly share code, notes, and snippets.

@Ibro
Last active November 17, 2017 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ibro/93b5d41f4d920298c2ea332f3af7ab0f to your computer and use it in GitHub Desktop.
Save Ibro/93b5d41f4d920298c2ea332f3af7ab0f to your computer and use it in GitHub Desktop.
ASP.NET Core SignalR chat with React.js - https://codingblast.com/asp-net-core-signalr-chat-react
componentDidMount = () => {
const nick = window.prompt('Your name:', 'John');
const hubConnection = new HubConnection('http://localhost:5000/chat');
this.setState({ hubConnection, nick });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment