10
Start
// test your implementation
// you should do it line by line
// aquire the global StreamingConnection
var streamingConnection;
lively.net.StreamingConnection.getInstance(function(connection) {
    show('Got a connection');
    streamingConnection = connection;
});
// publish the morph's stream
var morph = $morph('NumberGenerator');
streamingConnection.publish(morph);
// when everything went well, you should see your stream in here
Global.inspect(streamingConnection.availableStreams)
// now, there should be an id in the streamingConfig
var id = morph.streamingConfig.streamId;
// so we can subscribe to the stream by id
var stream = streamingConnection.subscribe(id);
$(stream).on('data', function(data) {
    Global.show(data);
});
// the incoming data will be printed using console.log,
// so take a look at your browser's console
// unsubscribe, if you have seen enough
stream.unsubscribe();
// and unpublish...
streamingConnection.unpublish(id);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX