0

I have a Node.js Http Server and Socket.IO running for my web app keeping all the clients in sync in real time. I'm pushing node events out from the client and from the node server, both broadcasts and to individual "rooms". This stuff is amazing.

Now, I have a use case where I would like to emit out a node.js event with a few params from c# code behind, inside a web service call.

[WebMethod] 
public MyMethod() 
{ 
    // emit node.js event
}

I thought about having a simple html page that requests querystring params and has node initialized in it. And c# code behind just does a http web request calling the url with the params? Not sure if that will work or be efficient, but first idea off the top of my head.

Any ideas or recommendations how to approach this one? Currently, I'm limited to .NET 4.0

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501

0 Answers0