Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/koraykoska/libwebsockets.swift
- Owner: koraykoska
- License: mit
- Created: 2023-08-02T21:19:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-11T16:07:41.000Z (about 1 year ago)
- Last Synced: 2024-05-02T03:10:52.364Z (8 months ago)
- Topics: libwebsockets, permessage-deflate, swift, websocket
- Language: Swift
- Homepage:
- Size: 1.73 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :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..