Sample web socket service for event driven communication
Software Architecture The web socket service provided for you to test your plugin code is written in ASP.NET core 2.0 and can be contained within Docker. It is comprised of two main classes: the manager class and the middleware class. StupidFunSocketManager This class currently holds a collection of web socket connections so the service can broadcast if necessary. Note this will only work for demonstration purposes; for production purposes you should leverage a centralized store or leverage an existing cloud based push notification system. StupidFunSocketMiddleware This class contains the code for reading messages sent from the plugin and assigning them to an appropriate adapter for processing. The adapters would contain the business logic and are designed to work asynchronously, not in the typical request response RESTful fashion that the majority of the internet behaves like. Activity Flow