Data handler used in GoRestClient::StartStream.
The stream message object is passed into the receiving function.