#NEWLINE# def onMessage( self , payload , isBinary ) : #NEWLINE# #INDENT# if ( not msg ) : #NEWLINE# #INDENT# msg = 'Echo 1 - {}' . format ( payload . decode ( 'utf8' ) ) #NEWLINE# print ( msg ) #NEWLINE# self . proto . sendMessage ( msg . encode ( 'utf8' ) )