Did you know ... Search Documentation:
Predicate notify/2
 notify(+Connection, +FrameType) is det[private]
 notify(+Connection, +FrameType, +Header) is det[private]
 notify(+Connection, +FrameType, +Header, +Body) is det[private]
Call the callback using FrameType.