https://github.com/maxdesiatov/niostomp
Example interaction with a STOMP server based on SwiftNIO
https://github.com/maxdesiatov/niostomp
rabbitmq stomp swift-nio
Last synced: about 1 year ago
JSON representation
Example interaction with a STOMP server based on SwiftNIO
- Host: GitHub
- URL: https://github.com/maxdesiatov/niostomp
- Owner: MaxDesiatov
- License: apache-2.0
- Created: 2022-04-12T15:42:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-12T15:49:43.000Z (about 4 years ago)
- Last Synced: 2025-01-31T07:42:59.070Z (over 1 year ago)
- Topics: rabbitmq, stomp, swift-nio
- Language: Swift
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NIOStomp
Example of an interaction with a [STOMP](https://stomp.github.io) server based on [SwiftNIO](https://github.com/apple/swift-nio). Currently, this is **NOT** a usable STOMP client library, but only a trivial example upon which such library could be built.
# How to run?
Install a STOMP server, for example [RabbitMQ](https://www.rabbitmq.com) with a STOMP plugin. You can easily install it on macOS with [Homebrew](http://brew.sh):
```
brew install rabbitmq
rabbitmq-plugins enable rabbitmq_stomp
```
Run the server in background:
```
brew services start rabbitmq
```
Start the client in the clone of this repository:
```
swift run NIOStomp
```
You should see something close to this output if the connection was established successfully:
```
CONNECTED
server:RabbitMQ/3.9.14
session:session-odhuI6DKb7XDvM7VApcPPQ
heart-beat:0,0
version:1.2
```