add missing socket API to NetStream