N2O as an embeddable framework provides two exports for loop entrance.
The n2o_proto protocol loop is compatible with cowboy and emqttd versions of N2O. The main purpose of this API is to embed N2O into your functional endpoint. In other cases it's called automatically by configuration.
The stream function is dedicated for cowboy version of n2o.
The info function is dedicated for emqttd version of n2o.
The raw protocol chain processing without using filtering. You can intercept all messages from stream/3 and info/3 by setting filter function in sys.config.
This module may refer to: n2o, n2o_pi.