HolyLib Wiki

CNetChan:SetConnectionCrashedCallback

  CNetChan:SetConnectionCrashedCallback( function callback )

Description

Sets the callback function for when a connection has crashed.
Can be returned using CNetChan:GetConnectionCrashedCallback

Arguments

1function callback

The new callback function

Function argument(s):
1CNetChan channel -

The channel

2string reason -

The crash reason

Function return argument(s):