I use LightStreamer (it is a software to send broadcast messages from server to subscribed javascript-clients) to get events to update complicated data view on webpage. There are a lot of different events, with different datasets attached. And it is quite hard to test this system because I need to do much work to cause event generation.
I want to test webpage separately from back-end, so I want to create 'LightStreamer mock' that will send to client predefined events.
What is the best and simplest way to do it?