Skip to content

Error when a client tries to close the connection and the server is already closed #15

@redDwarf03

Description

@redDwarf03

Describe the problem you discovered

When a Dapp tries to close a connection to the Wallet and the server is not active (for example because the user close manually the RPC Server), an error occurs in the websocket class

  @override
  Future<void> close() async {
    await _client?.close();
    _client = null;
  }
WebSocketChannelException (WebSocketChannelException: WebSocketChannelException: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = 127.0.0.1, port = 51367)

Describe the solution you'd like

Manage the case where the server's connection is already closed when we try to close client connection

Epic

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions