Open lgrahl opened 5 years ago
I'd explore 3, potentially using a single thread executor service: https://github.com/TakahikoKawasaki/nv-websocket-client#connect-to-server-asynchronously
I'm not entirely sure what you mean, @dbrgn. Can you explain how you would structure that?
For the time being #125 basically introduces @lgrahl's 1./2.
This library is not thread-safe and thus does not need synchronisation. All
synchronized
blocks and synchronised lists etc. should be removed/replaced.Since the WebSocket implementation does use threads internally, we still need synchronisation between it and the public API surface. I see a couple of options:
synchronized
.