Switch handler.websocket to a property to allow correct logical semantics