var streamingConnection;
lively.net.StreamingConnection.getInstance(function(connection) {
show('Got a connection');
streamingConnection = connection;
});
var morph = $morph('NumberGenerator');
streamingConnection.publish(morph);
Global.inspect(streamingConnection.availableStreams)
var id = morph.streamingConfig.streamId;
var stream = streamingConnection.subscribe(id);
$(stream).on('data', function(data) {
Global.show(data);
});
stream.unsubscribe();
streamingConnection.unpublish(id);