W.r.t web socket, how can I receive a collection of custom objects ?

Jul 20, 2012 at 5:26 AM


In the below code snippet, evt.data is returning a string . How can I receive a collection of custom objects ? 

ws -- > web socket connection instance.

 ws.onmessage = function (evt) 
        var received_msg = evt.data;
        alert("Message is received...");


Thank you.

Jul 20, 2012 at 5:30 AM

You should ask this question at SuperWebSocket's site.

But I still can answer you here.

In browser you can deserialize json string to object.

Jul 20, 2012 at 7:01 AM

Thank you.