centrifuge 0.7.0
centrifuge: ^0.7.0 copied to clipboard
Dart client to communicate with Centrifuge and Centrifugo from Flutter and VM over dart:io WebSocket
[0.7.0] #
Update to work with Centrifuge >= v0.18.0 and Centrifugo v3.
Breaking change in server behavior. Client History API behavior changed in Centrifuge >= v0.18.0 and Centrifugo >= v3.0.0. When using history call it won't return all publications in a stream by default. See Centrifuge v0.18.0 release notes or Centrifugo v3 migration guide for more information and workaround on server-side.
- Protocol definitions updated to the latest version
- History method now accepts optional
limit
,since
andreverse
arguments and returnsHistoryResult
- RPC call now requires method name as first argument (you can pass empty string to mimic previous behavior)
- Publish now returns
PublishResult
- When working with Centrifugo v3 or Centrifuge >= v0.18.0 it's now possible to avoid using
?format=protobuf
in connection URL. Client will negotiate Protobuf protocol with a server using WebSocket subprotocol mechanism (in request headers).
[0.6.0] #
[0.5.1] #
- Skip handling for events from server-side subscriptions resulted in null pointer dereference
[0.4.0] #
- Breaking changes
connected
property removed
[0.3.0] #
- Breaking changes Changed API to avoid returning futures where they do not make sense – in
connect
andsubscribe
methods. - Client now uses Websocket Ping/Pong frames to find broken connection
- Support for private channel subscription using
onPrivateSub
configuration callback function - Fix several null pointer dereferences in edge cases, throw
ClientDisconnectedError
when there is an attempt to send protocol request over non-connected client. - Fix examples where subscribe could happen before stream handlers set
[0.2.0] #
- Breaking changes Replaced subscribe method with getSubscription in Client.
- Added reconnection.
- Added history method to Subscription. Thanks vanelizarov.
- Added rpc method.
[0.1.0] #
- Added authorization with JWT
- Added subscription to private channel with JWT
[0.0.1] #
- Initial release