Skip to main content
Ice Tea GroupIce Tea Group
All posts

Real Time Clock

March 3, 20171 min read

This is the article that prompted this post:

https://www.codeproject.com/Articles/1172136/Build-Realtime-Clock-Using-Angular-TypeScript-ASP

It’s a good article that describes how to use Angular2, SignalR, TypeScript and ASP.NET to build a simple Real Time Web Application. We’d like you to compare the steps and the code with the same solution written using Wisej.

These are the steps in Wisej:

Step 1

Create a new project.

Real Time Clock

Step 2

Drop a label on the page.

Real Time Clock

Step 3

Start a static thread timer that can update multiple clients using a single thread. Each client session attaches to the timer’s Elapsed event and receives timer updates every second.

The time string is localized automatically to match the browser’s preferred language.

Real Time Clock

Step 4

Hit Run.

Wisej will push the new time to every connected client every second.

Real Time Clock

Try it on Azure

Hosted on Microsoft Cloud

Download Sample

Zip File (13 Kb)