for( int i = 0; i < 10; i++ ) {
Thread.sleep( 1000 );
final OutboundEvent.Builder eventBuilder = new OutboundEvent.Builder();
eventBuilder.name( "message-to-client" );
eventBuilder.data( String.class, "Hello world " + i + "!" );
final OutboundEvent event = eventBuilder.build();
eventOutput.write( event );
}
} catch( IOException e ) {
throw new RuntimeException( "Error when writing the event.", e );
} catch( InterruptedException e ) {