dart_pusher_channels 1.0.0
dart_pusher_channels: ^1.0.0 copied to clipboard
Dart implementation of client of Pusher Channels protocol, instrument to work with real-time applications.
1.0.0 #
Whole the project has been rethinked and redesigned in this update. The structure is more convenient and canonical according to the official documentation
NEW FEATURES:
- Support for Presence Channels
- Triggering events
BREAKING CHANGES:
Refactored:
- Renamed and reorganized a hierarchy of the event classes
- Reorganized a hierarchy of the channel classes
- Divided the whole lifecycle of the client in separate layers:
- Connection layer
- Channels layer
- Client's layer
- Connection layer
Removed:
ConnectionDelegateWebSocketChannelConnectionDelegateTokenAuthorizationDelegateEventReadEventSendEvent
Added:
- Unit tests
PusherChannelsConnection- interface for a connection layerPusherChannelsWebSocketConnection- implementation ofPusherChannelsConnectionPusherChannelsClientLifeCycleController- internal controller of a client's lifecycleChannelsManager- internal delegate of channelsChannelMembersChannelExtensionTriggerableChannelMixinEndpointAuthorizableChannelEndpointAuthorizableChannelAuthorizationDelegatePresenceChannel
0.3.1+1 #
Updated kDartPusherChannelsLibraryVersion constant metadata to 0.3.1
0.3.1 #
Added shouldSupplyQueryMetaData to PusherChannelsOptions. It will regulate whether to include or omit the metadata such as client, version, protocol.
0.3.0 #
BREAKING CHANGE: PusherChannelOptions was deprecated and renamed to PusherChannelsOptions for conveniency.
0.2.9 #
Returning '/' in path getter of PusherChannelOptions if both key and path parameters are provided as null.
0.2.8+1 #
Updated README.md
0.2.8 #
Minimal changes:
-
keyparameter ofPusherChannelOptionsis nullable now. -
Added a feature to set custom endpoint path to
PusherChannelOptionswithpathparameter. -
Made
versionparameter ofPusherChannelOptionsequals tokDartPusherChannelsLibraryVersion. -
Updated the inline documentation.
-
Updated
README.md. -
Update the example file.
0.2.7 #
Bug fixes:
- Fixed bug when connection status was set to
ConnectionStatus.conncetedeach time the pusher error event occured.
(Even if connection status was set to ConnectionStatus.established before).
- Fixed bug on double connections triggered by concurrent attempts to reconnect.
Internal changes:
- Using
disconnectSafelyinstead ofdisconnecton disposing the delegate.
0.2.6+1 #
- Fixed markdown of
README
0.2.6 #
-
Updated inline documentation of the package
-
Change:
connectanddisconnectmethods ofConnectionDelegateare@protected. UseconnectSafelyanddisconnectSafelyrespectively from the outside.
0.2.5 #
Merging pull requests #6,
#8, #10, #12. Thanks to Nicolas Britos for contributions.
- Added an additional member
pingWaitPongDurationto theConnectionDelegateand the parameter with the same name
to the constructor PusherChannelsClient.websocket. It will regulate timeout of ping waiting for pong (checking if connection is alive).
-
Fixed multiple connections occuring after
disconnectcommited by multiplereconnectcalls. -
Distincting manual disconnections of
ConnectionDelegate(disconnectSafely) from automated ones. -
Fixed: multiple socket connections while calling
connectmultiple times are prevented. -
Change: now
reconnect's type isFuture<void>. (Previously wasvoid).
0.2.3+1 #
Featuring contributors in README
0.2.3 #
Merging pull request #5, many thanks to Nicolas Britos
-
Add custom logger handler to use a custom Logger instead of printing to console.
-
Hide PusherChannelsPackageLogger from public API.
-
Fix logger tests not capturing what was being printed to console.
-
Remove logTest method as it is not needed anymore.
0.2.2 #
Added PusherChannelsPackageConfigs which enables and disables log prints.
0.2.1 #
Added following additional controls to PusherChannelsClient
-
Method
disconnect() -
Method
reconnect()
0.2.0+1 #
-
Updated README.md
-
Improved annotations
0.2.0 #
- Tested on Windows succesfully and updated meta data
0.1.1 #
- Fixed reconnection tries on disposal
0.1.0+1 #
- Updated the description of pubspec.yaml
0.1.0 #
- Fixed issue of non-cancallable timer. Added logging with
printby default. Will be optional in next minor version.
0.0.9+1 #
- Making
refreshcallback ofonConnectionErrorHandlerconstructor ofPusherChannelsClient.websocketnon-nullable
0.0.9 #
- Implemented
unsubscribemethod for private channels.
0.0.8 #
- Updated README.
0.0.7 #
- Using more canonical names of classes and interfaces.
0.0.6 #
- Updated README and example.
0.0.5 #
- Updated documentation.
0.0.3 #
- Initial version.