Recently I played with websocket and it works great,
in the client side with onmessage(evt) function, I received a message from the server side, the message is actually a JSON format like this:
{"Properties":{"name":"0a67d327-1f78-475e-b58a-d16706782223","publicname":"Page1"}}
then in the client side(html5 with javascript) I access the data using:
var page=evt.data;
then I access the JSON object
document.getElementById('name').innerHTML=page.Properties.name;
but it just won't work, I even use the eval function but it still doesn't work, I did check the page by using alert(page);
I wonder if the evt.data is not a string data but a byte, anyone have a solution for converting byte to string? or any other solution that may have something to do with this evt.data