testing Streams API to subscribe and trigger events both from local source and coming from the server through the websocket