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

off the top of my head https://godoc.org/golang.org/x/net/websocket has a synchronous read/write api


Does that block until messages are actually transferred, or just shove them in a golang buffer and return? Now that you mention it I feel like maybe I have seen blocking implementations in golang and Python a while back, which would make sense.


Skimming the implementation, there is buffering, but it looks like it's bounded, so tight looping Write() you should still end up blocking on the OS at some point.


Makes sense. Thanks for correcting my misconception!




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

Search: