tobias / vertx-swift-eventbus

Lib for using the Vert.x TCP EventBus bridge from Swift
Apache License 2.0
5 stars 2 forks source link

Add reconnect logic #3

Closed tobias closed 7 years ago

tobias commented 7 years ago

In case the remote bridge restarts.

tobias commented 7 years ago

We now throw EventBusError.disconnected when sending, or pass the same to the registered error handler for async operations, allowing the user to handle reconnection themselves.