Using ASP.net without core to trigger Events on WebClient Javascript / RawSocket Client / and Server

With the following four blocks of code you can trigger events over an open connection through ASP.net (without core) to EventSource Javascript objects or .NET Think clients. Below is an example on how I tackled this issue.

This code is responsible for accepting connections both from HTTP, JS EventSource Listeners and .NET Think clients.

The code below is used to trigger from an external source to send data to both JS EventSource listeners and Raw .NET thickclients using .Net WebClient. Below is for Server -> to JS Event Source & .NETClient

This can be triggered from a web event or from a method call.

The code below allows the server to handle incoming connections from a .NET Think Client sending POST EventTriggering Data

The code below allows the client to both send and receive event data from WebClient connections.

Leave a comment

Your email address will not be published. Required fields are marked *