VoicePacketConnection: Disconnect Synchronous
Stop receiving voice packet observations for this connection.
Luau
VoicePacketConnection:Disconnect() -> ()Parameters
Call this method with a VoicePacketConnection receiver. The colon supplies self implicitly; a dot call must pass the receiver explicitly.
This function takes no arguments.
Returns
()No values.
Usage notes
Connected becomes false after disconnecting or after a :Once callback is queued.
Example
Luau
local connection = voicechat.incomingpacket:Connect(function(packet) print(packet.Channel) end)
connection:Disconnect()