Skip to content

Commit

Permalink
graphql: removing more print statment in the socket client
Browse files Browse the repository at this point in the history
Fixes #1008

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Jan 12, 2022
1 parent cc6d95e commit a736d02
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,6 @@ class SocketClient {
_keepAliveSubscription = messages.whereType<ConnectionKeepAlive>().timeout(
config.inactivityTimeout!,
onTimeout: (EventSink<ConnectionKeepAlive> event) {
print(
"Haven't received keep alive message for ${config.inactivityTimeout!.inSeconds} seconds. Disconnecting..",
);
event.close();
socketChannel!.sink.close(ws_status.goingAway);
_connectionStateController.add(SocketConnectionState.notConnected);
Expand All @@ -228,7 +225,6 @@ class SocketClient {
var connection = await config.connect(Uri.parse(url), protocols);
socketChannel = connection.forGraphQL();
_connectionStateController.add(SocketConnectionState.connected);
print('Connected to websocket.');
_write(initOperation);

if (config.inactivityTimeout != null) {
Expand Down Expand Up @@ -278,10 +274,6 @@ class SocketClient {

if (config.autoReconnect && !_connectionStateController.isClosed) {
if (config.delayBetweenReconnectionAttempts != null) {
print(
'Scheduling to connect in ${config.delayBetweenReconnectionAttempts!.inSeconds} seconds...',
);

_reconnectTimer = Timer(
config.delayBetweenReconnectionAttempts!,
() {
Expand Down Expand Up @@ -392,7 +384,6 @@ class SocketClient {
.timeout(
config.queryAndMutationTimeout!,
onTimeout: (EventSink<GraphQLSocketMessage> event) {
print('Request timed out.');
response.addError(TimeoutException('Request timed out.'));
event.close();
response.close();
Expand Down

0 comments on commit a736d02

Please # to comment.