Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/koraykoska/libwebsockets.swift

High Performance Swift Websocket Library
https://github.com/koraykoska/libwebsockets.swift

libwebsockets permessage-deflate swift websocket

Last synced: about 2 months ago
JSON representation

High Performance Swift Websocket Library

Awesome Lists containing this project

README

        







CI Status


Latest Release

# :hatching_chick: libwebsockets.swift

libwebsockets.swift is a thin Swift wrapper around [libwebsockets](https://github.com/warmcat/libwebsockets).

This library aims to be the most performant Swift Websocket library, and hence uses [swift-nio](https://github.com/apple/swift-nio)
EventLoops, is thread safe by default, non-blocking and manages memory automatically.

Websocket messages can be received as either Text, Binary or Fragments to be parsed manually.

SSL (wss) support is achieved using OpenSSL bindings.

Compression ([permessage-deflate](https://datatracker.ietf.org/doc/html/rfc7692)) is supported with all config options.

The test suite utilizes the [Autobahn test suite](https://github.com/crossbario/autobahn-testsuite)
and passes all of the (currently) 517 test cases. With the performance tests finishing ~2-3x faster than any
other Swift Websocket library as of this writing.

## Version

We locked-in libwebsockets version `v4.3.2..