HolyLib Wiki

SetConnectionClosingCallback

  CNetChan:SetConnectionClosingCallback( function callback )

Description

Sets the callback function for when a connection is closed.
Can be returned using CNetChan:GetConnectionClosingCallback

Arguments

1function callback

The new callback function

Function argument(s):
1CNetChan channel - The channel
2string reason - The closing reason