ZeroMQ for Swift
Swift Shell
Latest commit 10a684e Jan 12, 2017 @goloveychuk goloveychuk committed on GitHub Merge pull request #17 from mprudhom/patch-1
Fix for missing travis script


Swift Zewo Platform License Slack Travis Codebeat

ZeroMQ is a 0mq binding for Swift 3.


  • Context
  • Socket
  • Message
  • Poller
  • Proxy


import ZeroMQ

let context = try Context()

let inbound = try context.socket(.Pull)
try inbound.bind("tcp://")

let outbound = try context.socket(.Push)
try outbound.connect("tcp://")

try outbound.sendString("Hello World!")
try outbound.sendString("Bye!")

while let data = try inbound.receiveString() where data != "Bye!" {
    print(data) // "Hello World!"


Install ZeroMQ system library


Add ZeroMQ to Package.swift

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "", majorVersion: 0, minor: 5),


If you need any help you can join our Slack and go to the #help channel. Or you can create a Github issue in our main repository. When stating your issue be sure to add enough details, specify what module is causing the problem and reproduction steps.



The entire Zewo code base is licensed under MIT. By contributing to Zewo you are contributing to an open and engaged community of brilliant Swift programmers. Join us on Slack to get to know us!


This project is released under the MIT license. See LICENSE for details.