Low level socket wrapper supporting reconnection and streaming RPCs