#NEWLINE# def send_pack( self , message ) : #NEWLINE# #INDENT# msg = ( '%s(%s);\r\n' % ( self . callback , proto . json_encode ( message ) ) ) #NEWLINE# self . set_header ( 'Content-Type' , 'application/javascript; charset=UTF-8' ) #NEWLINE# self . set_header ( 'Content-Length' , len ( msg ) ) #NEWLINE# self . set_header ( 'Etag' , 'dummy' ) #NEWLINE# self . write ( message ) #NEWLINE# self . _detach ( ) #NEWLINE# self . safe_finish ( )