Skip to content

Instantly share code, notes, and snippets.

Last active Nov 17, 2017
What would you like to do?
ASP.NET Core SignalR chat with React.js -
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