Skip to content

What is the recommended way to close/dispose an open channel? #271

Closed
@mbett7

Description

@mbett7

Had a quick look through the docs and tests and didn't see any mention of the proper way to close a IWampChannel.

Reason I ask is that there are two methods IWampChannel.Close() and IWampChannel.Close(string, string), which are a bit ambiguous without checking the comments and implementation.

From what I gather IWampChannel.Close() is like a Dispose() call and just closes the underlying connection, effectively having the same effect as negotiating a GOODBYE with the router.

Whereas, IWampChannel.Close(string, string) negotiates a GOODBYE with the router but leaves the underlying connection open?

So if the IWampChannel isn't going to be re-used is IWampChannel.Close() the recommended approach?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions