Example code for Typetalk Streaming API with ruby