Instantly share code, notes, and snippets.

@Ibro /Chat.jsx
Created Nov 17, 2017

Embed
What would you like to do?
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