Chat input

Add the required elements to enable our user to type a message (input) and post it to the server (event button for sendMessage):

  • <input id="message" type="text" class="form-control" />
  • <button class="btn btn-info" onclick="sendMessage()">Send</button>

Get C# 7 and .NET Core 2.0 Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.