asp.net - WebSocket server c# receiving & identifying multiple messages -


i have created asp.net c# project, consists of web form , websocket handler. send data in json format web form websocket handler.

the web form have code snippet:

  ws.send(json.stringify(amt));   ws.send(json.stringify(name)); 

under websocket handler's onmessage(string message) method, convert data sent web form in json format c# format. but, how onmessage method in websocket handler knows data "amt" , data "name"?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -