Table of Contents

Method DisconnectAsync

Namespace
DisCatSharp.Net.WebSocket
Assembly
DisCatSharp.dll

DisconnectAsync(int, string?)

Disconnects the WebSocket connection.

public Task DisconnectAsync(int code = 1000, string? message = null)

Parameters

code int

The code

message string

The message

Returns

Task