registerStream method
Registers a UDXStream with this socket.
Implementation
void registerStream(UDXStream stream) {
if (_closing) {
return;
}
if (_registeredStreams.containsKey(stream.id)) {
// Potentially throw an error or close the old stream
}
_registeredStreams[stream.id] = stream;
}