Hacker News new | ask | show | jobs
by amikazmi 4870 days ago
You can pass the initial data as a json object directly with the server response.

I'm using Rails, and https://github.com/gazay/gon gem does it for you nicely.