SockJS protocol related functions
Module contains two functions - json_encode and json_decode which you can use to encode/decode sockjs.tornado.proto.json_encode(data)¶ sockjs.tornado.proto.json_decode(data)¶
Module contains two functions - json_encode and json_decode which you can use to encode/decode
SockJS protocol constants. proto.CONNECT = 'o'¶ proto.DISCONNECT = 'c'¶ proto.MESSAGE = 'm'¶ proto.HEARTBEAT = 'h'¶ sockjs.tornado.proto.disconnect(code, reason)[source]¶ Return SockJS packet with code and close reason code Closing code reason Closing reason
SockJS protocol constants.
Return SockJS packet with code and close reason