-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0730e55
commit 667d423
Showing
11 changed files
with
139 additions
and
69 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
...les/Microsoft.AspNet.SignalR.Hosting.AspNet45.Samples/Hubs/ConnectDisconnect/Default.aspx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<%@ Page Title="ASP.NET SignalR: Connection Status" Language="C#" MasterPageFile="~/SignalR.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.AspNet.SignalR.Samples.Hubs.ConnectDisconnect.Default" %> | ||
|
||
<asp:Content ContentPlaceHolderID="MainContent" runat="server"> | ||
<ul class="breadcrumb"> | ||
<li><a href="<%: ResolveUrl("~/") %>">SignalR Samples</a> <span class="divider">/</span></li> | ||
<li class="active">Connection Status</li> | ||
</ul> | ||
|
||
<div class="page-header"> | ||
<h2>Connection Status <small>Handling client connection state</small></h2> | ||
<p>Demonstrates how to handle the events that are raised when connections connect, reconnect and disconnect from the Hub API.</p> | ||
</div> | ||
|
||
<h4>Connection Status Messages</h4> | ||
<ul id="messages"> | ||
</ul> | ||
</asp:Content> | ||
<asp:Content ContentPlaceHolderID="Scripts" runat="server"> | ||
<script src="<%: ResolveUrl("~/signalr/hubs") %>"></script> | ||
<script src="Status.js"></script> | ||
</asp:Content> |
17 changes: 17 additions & 0 deletions
17
.../Microsoft.AspNet.SignalR.Hosting.AspNet45.Samples/Hubs/ConnectDisconnect/Default.aspx.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace Microsoft.AspNet.SignalR.Samples.Hubs.ConnectDisconnect | ||
{ | ||
public partial class Default : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...t.AspNet.SignalR.Hosting.AspNet45.Samples/Hubs/ConnectDisconnect/Default.aspx.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
samples/Microsoft.AspNet.SignalR.Hosting.AspNet45.Samples/Hubs/ConnectDisconnect/index.htm
This file was deleted.
Oops, something went wrong.
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
31 changes: 31 additions & 0 deletions
31
samples/Microsoft.AspNet.SignalR.Hosting.AspNet45.Samples/Streaming/Default.aspx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<%@ Page Title="ASP.NET SignalR: Simple Streaming" Language="C#" MasterPageFile="~/SignalR.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.AspNet.SignalR.Samples.Streaming.Default" %> | ||
|
||
<asp:Content ContentPlaceHolderID="MainContent" runat="server"> | ||
<ul class="breadcrumb"> | ||
<li><a href="<%: ResolveUrl("~/") %>">SignalR Samples</a> <span class="divider">/</span></li> | ||
<li class="active">Simple Streaming</li> | ||
</ul> | ||
|
||
<div class="page-header"> | ||
<h2>Simple Streaming <small>Broadcasting to connected clients</small></h2> | ||
<p>A simple example of a background thread that broadcasts the server time to all connected clients every two seconds.</p> | ||
</div> | ||
|
||
<h4>Streaming Messages</h4> | ||
<ul id="messages"> | ||
</ul> | ||
</asp:Content> | ||
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="Scripts" runat="server"> | ||
<script> | ||
$(function () { | ||
var connection = $.connection('/streaming-connection'); | ||
connection.received(function (data) { | ||
$('#messages').append('<li>' + data + '</li>'); | ||
}); | ||
connection.start({ transport: activeTransport }); | ||
}); | ||
</script> | ||
</asp:Content> |
17 changes: 17 additions & 0 deletions
17
samples/Microsoft.AspNet.SignalR.Hosting.AspNet45.Samples/Streaming/Default.aspx.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
|
||
namespace Microsoft.AspNet.SignalR.Samples.Streaming | ||
{ | ||
public partial class Default : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
samples/Microsoft.AspNet.SignalR.Hosting.AspNet45.Samples/Streaming/Default.aspx.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
samples/Microsoft.AspNet.SignalR.Hosting.AspNet45.Samples/Streaming/Streaming.cs
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
samples/Microsoft.AspNet.SignalR.Hosting.AspNet45.Samples/Streaming/index.html
This file was deleted.
Oops, something went wrong.