Bind the SocketStream from within the callback functions instead of the lib itself