Hi, Is it possible to reuse/add/have a SPI to create ws coders/decoders?
Currently it is a hardcoded factory doing a "new" (org.apache.tomcat.websocket.Util#getDecoders for decoders, for encoders it is a bit worse since there is an instance as a check here org.apache.tomcat.websocket.server.WsServerContainer#validateEncoders and the instantiation happens here org.apache.tomcat.websocket.WsRemoteEndpointImplBase#setEncoders). Best would likely be to reuse tomcat instance manager since it would make it working OOTB for integrations/users and also enable to have a proper lifecycle management (destroyInstance). Wdyt? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance>