Simple C# Websocket Time Server example

Nov 3, 2011 at 12:31 PM
Edited Nov 3, 2011 at 1:31 PM

Hi all,

I am a bit overwhelmed by the current SuperWebSocket code base.

I want to wet my feet by creating a super simple C# application that implements a server on say port 8080 and transmits the time once a second.

And then a simple HTML page that grabs the string in Javascript and displays it on the screen.

I know this is a noob question, but could someone please give me some pointers as to the bare minimum requirements to do this?

 

Any help is much appreciated.

Coordinator
Nov 3, 2011 at 1:29 PM

There is a sample named SuperWebSocketWeb in folder Samples of source code.

Nov 4, 2011 at 9:57 AM

Thank you kerryjiang, that was exactly what I needed.

I reproduced the results using a simple Windows forms application as the server and plain HTML with javascript to grab the messages.

Runs fine under Chrome 15.

 

Thanks again.

Sep 8, 2013 at 8:56 PM
Edited Sep 8, 2013 at 8:57 PM
kerryjiang wrote:
There is a sample named SuperWebSocketWeb in folder Samples of source code.
I downloaded SuperWebSocket(0.8).

Where do I find the SuperWebSocketWeb folder in the sample source code, I don't see it. I see BasicConsole, CommandAssembly, CustomSession and etc. Am I looking at the right place?
Coordinator
Sep 8, 2013 at 9:20 PM
The new name is LiveChat.

Sent from my Windows Phone

From: MarioRosario
Sent: 9/8/2013 15:56
To: [email removed]
Subject: Re: Simple C# Websocket Time Server example [SuperWebSocket:278177]

From: MarioRosario

kerryjiang wrote:
There is a sample named SuperWebSocketWeb in folder Samples of source code.
I downloaded SuperWebSocket(0.8).

Where do I find the SuperWebSocketWeb folder in the sample source code, I don't see it. I see BasicConsole, CommandAssembly, CustomSession and etc. Am I looking at the right place?