4 Replies - 239 Views - Last Post: 04 February 2020 - 08:15 AM Rate Topic: -----

#1 O'Niel   User is offline

  • D.I.C Regular

Reputation: 15
  • View blog
  • Posts: 491
  • Joined: 13-September 15

Writing a tutorial about Websockets & SignalR

Posted 04 February 2020 - 07:44 AM

Hello

We have a school project in which we need to write a tutorial and demo-implementation about Websockets and SignalR in C#.
If I'm right, Websockets allows your C# application to listen to a specified port and get real-time messages.
Kind of like AJAX?

And SignalR is just a C# library to make raw sockets easier to implement?

But my actual question is: What should this tutorial exactly include?
I could just take this page https://docs.microso...etframework-4.8
and write about all the methods listed on the page, but that doesn't seem very useful.

So I was thinking about just implementing websockets and write a tutorial about how I implemented it, but that maybe will be too short?

What would you guys put in the tutorial?
It should be a lengthy tutorial (about 70 presentation-dias?)

Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Writing a tutorial about Websockets & SignalR

#2 Skydiver   User is online

  • Code herder
  • member icon

Reputation: 7239
  • View blog
  • Posts: 24,542
  • Joined: 05-May 12

Re: Writing a tutorial about Websockets & SignalR

Posted 04 February 2020 - 08:06 AM

From the SignalR documentation:

Quote

SignalR uses the new WebSocket transport where available and falls back to older transports where necessary. While you could certainly write your app using WebSocket directly, using SignalR means that a lot of the extra functionality you would need to implement is already done for you. Most importantly, this means that you can code your app to take advantage of WebSocket without having to worry about creating a separate code path for older clients. SignalR also shields you from having to worry about updates to WebSocket, since SignalR is updated to support changes in the underlying transport, providing your application a consistent interface across versions of WebSocket.

Was This Post Helpful? 1
  • +
  • -

#3 Skydiver   User is online

  • Code herder
  • member icon

Reputation: 7239
  • View blog
  • Posts: 24,542
  • Joined: 05-May 12

Re: Writing a tutorial about Websockets & SignalR

Posted 04 February 2020 - 08:12 AM

Try reading these to see what a tutorial regarding SignalR may look like:
Recap: Creating a demo of real-time communication app using AspNetCore.SignalR
Tutorial: Real-time chat with SignalR 2
Tutorial: Get started with ASP.NET Core SignalR
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15497
  • View blog
  • Posts: 62,059
  • Joined: 12-June 08

Re: Writing a tutorial about Websockets & SignalR

Posted 04 February 2020 - 08:14 AM

Well, what do you want to cover? An intro to SignalR and websockets? Some niche functionality? Vidja games?

Most tutorials should convey a pretty small area.
1. What is it?
2. What's the benefits?
3. Applications of use?
4. Minimal example of setup/implementation.
Was This Post Helpful? 1
  • +
  • -

#5 Skydiver   User is online

  • Code herder
  • member icon

Reputation: 7239
  • View blog
  • Posts: 24,542
  • Joined: 05-May 12

Re: Writing a tutorial about Websockets & SignalR

Posted 04 February 2020 - 08:15 AM

My suggestion is pick something that demonstrates real time updates/communications. Then either show an implementation starting with SignalR and deconstruct it to use purely WebSockets, or start with WebSockets, and then show the conversion to using SignalR. That should give you enough content as well as cover the how, what, and why's that most people look for in a tutorial.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1