507 Views
This post discuss about using WebSockets in ASP.NET 4.5. You can read this post to get an understanding about WebSockets. This post shows piece of code which uses WebSockets in ASP.NET 4.5 and the code is related to simple chat application.
If someone sends message to the server, the server must first check for an active authentication. If there is none, it doesn't matter what types of message are sent as the application should drop them. SSL protects the authentication process as well as the messages sent so that authentication tokens cannot be intercepted. Enabling SSL really is the cornerstone of implementing any real security in a web application, whether websockets or normal https protocols are used for transport.