Swiftpack.co - Package - shareup/phoenix-apple

Phoenix channels client for Apple OS's

(macOS, iOS, iPadOS, tvOS, and watchOS)

A package for connecting to and interacting with Phoenix channels from Apple OS's written in Swift taking advantage of the built in Websocket support and Combine for publishing events to downstream consumers.

Compatible with Phoenix channels vsn=2.0.0 only.

Tests

Using Xcode

  1. In your Terminal, navigate to the phoenix-apple directory
  2. Start the Phoenix server using ./start-server
  3. Open the phoenix-apple directory using Xcode
  4. Make sure the build target is macOS
  5. Product -> Test

Using swift test

  1. In your Terminal, navigate to the phoenix-apple directory
  2. Start the Phoenix server using ./start-server
  3. Open the phoenix-apple directory in another Terminal window
  4. Run the tests using swift test

Running sample phoenix-js client

  1. In your Terminal, navigate to the phoenix-apple directory
  2. Start the Phoenix server using ./start-server
  3. In a new Terminal tab, navigate to the phoenix-apple directory
  4. Start the phoenix-js cleint using ./start-phoenix-js
  5. Open the developer console in the just-opened Web browser window and send commands to the client using standard JavaScript

Github

link
Stars: 0

Used By

Total: 0

Releases

v4.3.0 -

Expose Channel.leave() publicly.

v4.2.0 -

Include reply message with Channel.Event.join.

v4.1.0 -

Make Channel.Message's properties public.

v4.0.0 -

Change OutgoingMessageEncoder to output RawOutgoingMessage instead of WebSocketMessage. Change IncomingMessageDecoder to receive RawIncomingMessage as input instead of Data.

v3.2.1 -

Support encoding and decoding binary messages.

v3.2.0 -

Add Socket.maximumMessageSize.

v3.1.2 -

Simplify the encoder/decoder logic inside of Socket and fix a bug in the way text messages are handled.

v3.1.1 -

Makes the default encoder for OutgoingMessage and the default decoder for IncomingMessage public.

v3.1.0 -

Adds the ability for consumers of Socket to supply a custom OutgoingMessageEncoder and/or IncomingMessageDecoder. This matches the behavior of phoenix.js.

v3.0.4 -

Manually encode all query parameters using x-www-form-urlencoded to match the behavior in Plug.Conn.fetch_query_params().

v3.0.3 -

Revert the change in which we no longer appended websocket to the specified WebSocket URL.

v3.0.2 -

Stop appending websocket to the specified WebSocket URL.

v3.0.1 -

v3.0.0 -

Replace internal instance of WebSocket with websocket-apple.

v2.0.0 -

Update API to more closely match the canonical JavaScript Phoenix client. This new version passes all of the (applicable) tests in the JavaScript client's test suite.

v1.0.1 -

Upgrade to Swift 5

v1.0.0 -

Initial release.