locked
What you can and can not do with ASP.NET SignalR ? RRS feed

  • Question

  • User-1425286219 posted

    I've recently started learning ASP.NET Signal R. I needed it for a chat system that I wanted in my "White Board Tool". As I'm new to it, I don't know much things about it.
    As ASP.NET Signal R pushs content to the connected clients as they available, in real-time (broadcast nature). I wanna know these things 


    Is there any way we can allow only a particular pair to chat (message must be available to all) ?
    Can we populate some data from SQL Server database and make available to all, using Signal R ?
    Can we build audio chat system using ASP.NET signal R ?

    Tuesday, October 7, 2014 5:42 AM

Answers

  • User61956409 posted

    Hi 22990atinesh,

    Thanks for your post.

    22990atinesh

    Is there any way we can allow only a particular pair to chat (message must be available to all) ?

    Groups in SignalR provide a method for broadcasting messages to specified subsets of connected clients. For more information about Groups in SignalR, you could refer to the following link.

    22990atinesh

    Can we populate some data from SQL Server database and make available to all, using Signal R ?

    Yes, we can do it. Here is an article which describes how to broadcast SQL Data Using SignalR in ASP.Net.

    Hope it will be helpful to you.

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 8, 2014 1:55 AM
  • User71929859 posted

    Is there any way we can allow only a particular pair to chat (message must be available to all) ?

    Yes. SignalR supports one on one communication using Client ID of a particular client. Have a look at the sample chat application I've created. There I've implemented one to one chatting

    http://ruchirac.blogspot.co.nz/2013/02/creating-chat-application-in-aspnet.html

    Can we populate some data from SQL Server database and make available to all, using Signal R ?

    Yes you can. Use SignalR with SqlDependency.

    http://techbrij.com/database-change-notifications-asp-net-signalr-sqldependency

    Can we build audio chat system using ASP.NET signal R ?

    Neither SignalR nor ASP.NET support microphone access from a client machine. You need to look at something like WebRTC or Silverlight client application and then use SignalR as the Signaling system.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 12, 2014 7:19 PM

All replies

  • User1508784131 posted

    Is there any way we can allow only a particular pair to chat (message must be available to all) ?

    Yes private chat rooms are possible. There are many tutorials for this if you search.

    Can we populate some data from SQL Server database and make available to all, using Signal R ?

    Yes very easily. You can write your query inside the method in Hub class and send it to client.

    Can we build audio chat system using ASP.NET signal R ?

    SignalR is for sending small amount of data(max. 40K if I am not wrong) but there are ways to implement even video chat.

    http://stackoverflow.com/questions/15407501/audio-and-video-msg-in-signalr

    http://forums.asp.net/t/1877799.aspx?Does+SignalR+support+voice+and+video+chat+

    Tuesday, October 7, 2014 8:05 AM
  • User61956409 posted

    Hi 22990atinesh,

    Thanks for your post.

    22990atinesh

    Is there any way we can allow only a particular pair to chat (message must be available to all) ?

    Groups in SignalR provide a method for broadcasting messages to specified subsets of connected clients. For more information about Groups in SignalR, you could refer to the following link.

    22990atinesh

    Can we populate some data from SQL Server database and make available to all, using Signal R ?

    Yes, we can do it. Here is an article which describes how to broadcast SQL Data Using SignalR in ASP.Net.

    Hope it will be helpful to you.

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 8, 2014 1:55 AM
  • User-1425286219 posted

    Thanks I'll check out the links.

    Wednesday, October 8, 2014 4:20 PM
  • User71929859 posted

    Is there any way we can allow only a particular pair to chat (message must be available to all) ?

    Yes. SignalR supports one on one communication using Client ID of a particular client. Have a look at the sample chat application I've created. There I've implemented one to one chatting

    http://ruchirac.blogspot.co.nz/2013/02/creating-chat-application-in-aspnet.html

    Can we populate some data from SQL Server database and make available to all, using Signal R ?

    Yes you can. Use SignalR with SqlDependency.

    http://techbrij.com/database-change-notifications-asp-net-signalr-sqldependency

    Can we build audio chat system using ASP.NET signal R ?

    Neither SignalR nor ASP.NET support microphone access from a client machine. You need to look at something like WebRTC or Silverlight client application and then use SignalR as the Signaling system.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 12, 2014 7:19 PM