visual studio - How to create ASP.NET websocket .ashx file's URL? -


i newbie of websocket. have created asp.net web project in visual studio named capwebsocketproject. inside project there .ashx file named cpwebsocket.ashx. inside ashx file, there c# codes. here codes:

 public class cpwebsocket : ihttphandler  {     public long fngetterminalinfo()     {         string strcom = "com4"; // hard coded testing           string strgetterminalinfocommand = "c900";         <xxxx> clsterminal = new <xxxx>();           long lgportstat = clsterminal.sendcommand(strcom, strgetterminalinfocommand);          return lgportstat;     }  } 

now, question how create websocket cpwebsocket.ashx file's url can access browser?

i don't think .ashx websocket, need inherit websocketservice need create object of websocket in javascript , give url of websocket , key want listen it, here's example: http://www.codeproject.com/articles/1063910/websocket-server-in-csharp


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -