websocket: add filter for events NAME and TYPE