feat(middleware): inspect WebSocket text messages (#2477)