Network internalsOverview
raknet.remove_send_hook
Represents removal of an outgoing-packet callback.
Aliases
raknet.removesendhookremove_send_hookDetails#
Removes one matching outgoing callback registered in the current context. Pass the same function value returned by add_send_hook. Returns true when found, false otherwise.
Examples#
Example
local callback = raknet.add_send_hook(function(packet) end)
print(raknet.remove_send_hook(callback)) -- true
print(raknet.remove_send_hook(callback)) -- false