Updated to support duplex streaming

Removed passing through of raw data as we needed to use it as a duplex
stream.