INTRO
The nitro_n2o module provides Nitrogen Web Framework protocol specification and implementation.
INIT
Init message invokes event(init) function in page module. There are two binary representations of INIT message. The first one is BERT encoded #init record with binary token that usually issued by n2o_session, transported in #io record as data parameter and stored on client side in localStorage or Key Chain. Clients with invalid tokens are being registered and reissued.
The second one is TEXT encoded version of message, <<"N2O,">> that usually works for hosts with raw binary falicities as WebSockets.
For token issue protocol see n2o_session module.
PICKLE
PICKLE message sends to server prerendered (by server) encrypted message. These messages hold #ev record with callee information (encrypted). Such pickled messages can prolongate expiration field in session token (renewed) by updating client token on each UI request (tracking user activity) when n2o application variable nitro_prolongate equals true.
DIRECT
Direct message sends data without any conversion or encryption or session logic.
FLUSH
Flush message only redirects data to the socket.