Repository navigation
Releases
Releases · instantraaamen/swift-partysocket
0.1.0
Added
ReconnectingWebSocket, with the reconnection options and defaults of PartySocket for JavaScript.PartySocketandPartySocketOptionsfor 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.
enqueuesOnlyWhileConnectingandverifyConnection().WebSocketTransport, with aURLSessionimplementation.protocols,disableNameValidation,updateProperties,drainQueuedMessages(),roomURLandPartySocket.fetch, as in PartySocket for JavaScript.debugLogger, in place ofdebuganddebugLogger. 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-Afteris passed to the reconnection policy with a refused handshake.- A warning, logged once, when
sendis called afterclose(). - An integration test against a real PartyServer room (
Scripts/integration-test.sh).