Skip to content

Instantly share code, notes, and snippets.

@Ibro
Created November 17, 2017 06:15
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/fb2f2e1dddea28fa5da449fe7f8d6ff4 to your computer and use it in GitHub Desktop.
Save Ibro/fb2f2e1dddea28fa5da449fe7f8d6ff4 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
sendMessage = () => {
this.state.hubConnection
.invoke('sendToAll', this.state.nick, this.state.message)
.catch(err => console.error(err));
this.setState({message: ''});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment