Are you an LLM? You can read better optimized documentation at /documentation/api/core/functions/closeConnection.md for this page in Markdown format
ws-asyncapi API / core / closeConnection
Function: closeConnection()
closeConnection(
channel,backplane,conn):Promise<void>
Defined in: .api-entries/core/index.d.ts:490
Run onClose, persist the recovery session, and drop the socket from rooms.
Parameters
channel
backplane
conn
Returns
Promise<void>