Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/edonv/wspublisher

A native Swift WebSocket manager based in Combine.
https://github.com/edonv/wspublisher

combine ios swift websocket websockets

Last synced: 3 months ago
JSON representation

A native Swift WebSocket manager based in Combine.

Awesome Lists containing this project

README

        

# WSPublisher

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fedonv%2FWSPublisher%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/edonv/WSPublisher)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fedonv%2FWSPublisher%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/edonv/WSPublisher)

`WSPublisher` is a client library for easy `Combine`-based communication via [WebSocket](https://en.wikipedia.org/wiki/WebSocket). It also has async/await overloads. It's written in pure Swift, has no third-party dependencies, and is built entirely on top of Swift's native [URLSessionWebSocketTask](https://developer.apple.com/documentation/foundation/urlsessionwebsockettask).

While this library can be used for any WebSocket communication, it was built as a modular piece of the puzzle that is my [OBSwiftSocket library](https://github.com/edonv/OBSwiftSocket).