Skip to main content

Connection:Disconnect 🟪

Stops listening to the given event by using the connection object.

Works on both the 🟦Client and the 🟩Server.

Returns:

NameTypeDescription
void

Example:

local connection : ProNet.Connection = testSignal.Event:Connect(function(serverMessage : string)
print(serverMessage)
end)

connection:Disconnect()