Skip to content

Releases

0.1.0

Choose a tag to compare

@instantraaamen instantraaamen released this 13 Nov 10:33

Added

  • ReconnectingWebSocket, with the reconnection options and defaults of PartySocket for JavaScript.
  • PartySocket and PartySocketOptions for PartyKit and PartyServer URLs.
  • A reconnection policy that can stop or choose the delay per disconnection.
  • Keep-alive pings, delay jitter and per-attempt request headers for native clients.
  • enqueuesOnlyWhileConnecting and verifyConnection().
  • WebSocketTransport, with a URLSession implementation.
  • protocols, disableNameValidation, updateProperties, drainQueuedMessages(), roomURL and PartySocket.fetch, as in PartySocket for JavaScript.
  • debugLogger, in place of debug and debugLogger. Its lines never contain the URL, query or header fields of a request.
  • .open(isReconnection:), so that state can be fetched again after a reconnection only.
  • sendReportingOutcome(_:), which reports whether a message was sent, kept or dropped.
  • Retry-After is passed to the reconnection policy with a refused handshake.
  • A warning, logged once, when send is called after close().
  • An integration test against a real PartyServer room (Scripts/integration-test.sh).