Created
November 17, 2017 06:15
-
-
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
This file contains 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
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