define esper statement in local scope for each websocket connection