Web Connection
Socket support in Web Connection
Gravatar is a globally recognized avatar based on your email address. Socket support in Web Connection
  Jim Monte
  All
  Apr 11, 2021 @ 11:52am

So since WC now supports Socket stuff.. I take it we can build a peer to peer WebRTC app using WCs socket stuff to handle signaling? I made a Video/Chat App using node for the signal server... I'd rather have it in my WC/IIS stuff... I'd just use WC sockets to handle signaling and not the actual chat.. Would use WebRTC to handle Video and chat.. Has anyone tried to do anything like this in WC yet?

Gravatar is a globally recognized avatar based on your email address. re: Socket support in Web Connection
  Rick Strahl
  Jim Monte
  Apr 11, 2021 @ 12:20pm

I think so yes. Both ends need to be able to use WebSockets for this to work though with the WC server as the hub in the hub and spoke model.

We've been able to do this for some time, if you previously wanted to use some alternate technology for the server bit - (ie. .NET with a SignalR server, or Node for as you're doing). Now you can use Web Connection too... but it's a less flexible model. You don't have as much control as a full solution like SignalR or SocketIO, but still it works for many common scenarios. Before you jump in with production work (especially if you come from an existing framework) make sure you test your scenarios out first.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Socket support in Web Connection
  Jim Monte
  Rick Strahl
  Apr 11, 2021 @ 12:40pm

I only need to Send / Receive SDP "Session Description Protocol" it's just a few hundred chars of text describing what each peer is capable of.. so I think it will work fine... This new socket stuff in WC opens up many new features I can add to my existing apps...

Thanks Rick!!!

Gravatar is a globally recognized avatar based on your email address. re: Socket support in Web Connection
  Jim Monte
  Jim Monte
  Apr 11, 2021 @ 01:14pm

When you first came out with this latest Version 7.20.. Seems like the Chat demo wasn't working right... looks like it is working fine now.. I'm going to play with that code to send / receive SDP messages.. Once local and remotes have each others information.. it should be as easy as send the video streams.. When will you have a sample on this.. lol.. joking..

-- Jim --

Gravatar is a globally recognized avatar based on your email address. re: Socket support in Web Connection
  Rick Strahl
  Jim Monte
  Apr 11, 2021 @ 05:18pm

Yeah when I pushed the demos up, I forgot to enable WebSockets on the site. Duh 😄

The chat demo is very rudimentary of course, basically just demonstrates the broadcast mode - doesn't show previous message or chat room groupings etc. so very simplistic, although it's possible to do all that if you track users through their sessions.

Be interesting to see what people build on top of this.

+++ Rick ---

© 1996-2024