Hacker News new | past | comments | ask | show | jobs | submit login

> Also, magically trying to decode strings if they look like JSON sounds rather scary.

That's not what's going on. Each message is tagged with a "type", and one of the tags means "JSON.parse this into an object" while another means "this is just a string".

The rest of the types are for control messages (like ping/pong), I believe.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: