Use new Websocket 1.1 methods to reduce the complexity of AnnotatedEndpoint