Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You do not have to poll. You can wait on the socket until you get data and only then poll.


I quoted that part from the documentation - the way I understand it is that I can't detect if I have data (so I cannot "wait on the socket") in any other way than by polling via that function. Is that not correct?




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

Search: