Skip to content

Releases: davidstump/SwiftPhoenixClient

0.9.3

17 Jan 22:48
Compare
Choose a tag to compare

Added

  • #119: A working implementation of Presence

Changed

  • #120: Xcode 10 and Swift 4.2

0.9.2

09 Sep 00:40
Compare
Choose a tag to compare

Fixed

  • #111: Strong memory cycles between Socket, Channel and Timers
  • #112: Leak when Socket disconnects and properly call onClose()
  • #114: Carthage failing on builds and app store uploads

Changed

  • #116: A Channel's topic is now exposed as public

0.9.1

02 Aug 17:00
Compare
Choose a tag to compare

PRs

#107 - Added security configuration to the underlying WebSocket.

Thanks to @tapi for the feature and PR!

0.9.0

12 Jun 14:33
Compare
Choose a tag to compare

0.8.1

01 Mar 15:15
Compare
Choose a tag to compare
  • Pass a Channel's initial parameters on .join() (#89)

0.8.0

21 Feb 00:22
Compare
Choose a tag to compare

SwiftPhoenixClient now closely mirrors the API and behavior of the Phoenix.js

Please reference the Usage Guides for how to use the client.

This release contains breaking changes from 0.7.0-rc1

0.7.0-rc1

12 Feb 14:54
Compare
Choose a tag to compare

This release introduces breaking changes from 0.6.0

The Wiki for more details

Initialization

  • The init method no longer requires breaking up an endpoint. init(domainAndPort:, path:, transport:, prot:, params) as been removed in favor of init(url:, params:) where url:can be a String or a URL and params is an optional[String:Any]`
  • The socket no longer opens automatically upon initialization. You must call .open() in order to open the socket connection to the endpoint. .open() can be called before or after channels are joined

Channels

  • the .join() method signature has changed. It now accepts an optional Payload parameters to send when joining a channel.
  • The closure passed to the socket when joining a channel now returns a Channel instead of Any so you no longer need to force cast let channel = channel as! Channel
  • Listening to an event on a channel has changes slightly. The handler now returns the payload of a phoenix message so you can access values as such:
let status = payload["status"]
print(status) // "ok"

Sending Messages

You can now send a message through the socket or to a topic through a channel. You can receive events on a successful or failed send. See the wiki for more details

Removed

  • The Message object has been removed and replaced with Payload which is just a typealias of [String:Any