TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

Ability to replace threads #250

Open MinnDevelopment opened 11 months ago

MinnDevelopment commented 11 months ago

With the release of Java 21, new virtual threads can be used to reduce the memory impact of threads that perform a lot of I/O operations. Would it be possible to add support for replacing the existing threads used by this library using a thread factory?

The library does not need to update to Java 21, it only needs to allow replacing the threads.