Skip to content

SignalR Java client: disposing Completable returned by HubConnection.start() does nothing #36298

Open
@Bludator

Description

@Bludator

Describe the bug

It is not possible to prevent HubConnection from starting with dispose call on Completable returned by HubConnection.start().
By looking at the code there is no doOnDispose or alike

If one is unaware of this, it could lead to unwanted connections.

To Reproduce

HubConnection hubConnection= HubConnectionBuilder.create(...)...;
hubConnection
    .start()
    .subscribe(connection->/*do something*/)
    .dispose(); // this does nothing, connection is created

Further technical details

  • Client version: 6.0.0-preview.7.21378.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-signalrIncludes: SignalR clients and serversfeature-client-javaRelated to the SignalR Java client

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions