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