ReconnectableWSActor is an Akka Actor that connects to a websocket at a specified URL, and manages the connection and message consumption.
The actor has two states: uninitialized and initialized.
In the uninitialized state, the actor attempts to connect to the websocket, and if the connection fails, retries after a delay.
In the initialized state, the actor consumes messages from a queue in an await-notify fashion.
If a message is consumed successfully, the actor proceeds to process the next message in the queue.
If the queue is empty and a new message arrives, the actor starts consuming the new message.
ReconnectableWSActor is an Akka Actor that connects to a websocket at a specified URL, and manages the connection and message consumption. The actor has two states: uninitialized and initialized. In the uninitialized state, the actor attempts to connect to the websocket, and if the connection fails, retries after a delay. In the initialized state, the actor consumes messages from a queue in an await-notify fashion. If a message is consumed successfully, the actor proceeds to process the next message in the queue. If the queue is empty and a new message arrives, the actor starts consuming the new message.