Skip to content

Commit

Permalink
Merge pull request #1 from dailydrip/feature/disconnect
Browse files Browse the repository at this point in the history
Add public disconnect function
  • Loading branch information
knewter committed Feb 5, 2019
2 parents b2d0245 + 21868a0 commit 20551f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/absinthe_socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class AbsintheSocket {
_absintheChannel.join().receive("ok", _sendQueuedPushes);
}

disconnect() {
_phoenixSocket.disconnect();
}

_sendQueuedPushes(_) {
_queuedPushes.forEach((notifier) {
_pushRequest(notifier);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: absinthe_socket
description: A GraphQL subscription client for Absinthe sockets.
version: 0.0.2
version: 0.0.3
author: Josh Adams <[email protected]>
homepage: http:https://github.com/dailydrip/absinthe_socket

Expand Down

0 comments on commit 20551f7

Please sign in to comment.