yavsc/src/Yavsc/Views/Home/Chat.cshtml
Paul Schneider a7c5e6be34 drop the global user list
This global user list is not apprpriated to a normal usage

Also simplifies the code: rollback on user authenticated js flag.

And finally Fixes a bug, trying to reconnect the hub
([TODO] middleware black listing IP's prsenting abnormal rate on connections queries).
2019-06-06 09:31:42 +01:00

22 lines
623 B
Text

@{ ViewBag.Title = "Chat"; }
<h2>@ViewBag.Title</h2>
<label><input type="checkbox" id="mute" />Muet</label>
<div class="container disabled panel" id="chatview" data="fullchatview"
data-chans="yavsc" data-mutectl="mute" ></div>
@section scripts {
<!--Reference the autogenerated SignalR hub script. -->
<script src="~/api/signalr/hubs"></script>
<!-- SignalR script to update the chat page and send messages.-->
@if (!ViewBag.IsAuthenticated) { // Get the user name and store it to prepend to messages.
<script>
// var uname = prompt('Entrez votre nom:', '');
</script>
}
<script src="~/js/chat.js"></script>
}