Atomic docs

add_receive_hook

add_receive_hook(fn: function): number

Called for every incoming packet. Return false to drop it.

↑