Require API Key On Websockets API

I was wondering how one can make API Keys required on a Websockets API. Does serverless framework support that, if not, is there a way to make it required?

Seems like private: true doesn’t work for websocket events.