Fixes these issues:
- Losing connection with the server would cause a stack overflow
- Upon re-connecting, previous registrations would not successfully be reregistered
- Util.intToBytes crash was fixed (may be a Swift 4.0-related issue)
This provides a Swift client for talking to Vert.x via the vertx-tcp-eventbus-bridge.
The original version has been tested with Swift 3.1 on macOS X and Ubuntu.
This fork has been tested on macOS with Swift 4.0 and Xcode 9.2
A simple example application is available in example-project.
The API docs are (still) available at http://tobias.github.io/vertx-swift-eventbus/.
The latest release is 0.2.1
. To use it with Swift Package Manager,
add the following to your dependencies in Package.swift
:
.Package(url: "https://github.com/nfranke/vertx-swift-eventbus.git", "0.2.1")
make test
The tests build a Vert.x server and launch it, so you'll need Java (8 or higher) and maven installed.
To generate documentation, you'll need to have
sourcekitten
and
jazzy
installed. The easiest way
to do that (on MacOS) is with:
brew install sourcekitten
sudo gem install jazzy
Then, build the docs with:
make docs
The generated docs will be available in docs/
.
vertx-swift-eventbus is licensed under the Apache License, v2. See LICENSE for details.