#NEWLINE# def sendMessage( self , msg ) : #NEWLINE# #INDENT# " Internally used method to send a message to the robot.\n\n            Should not be used from outside the Protocol; instead use the\n            methods 'sendDataMessage' or 'sendErrorMessage'.\n\n            (Overwrites method from autobahn.websocket.WebSocketServerProtocol)\n\n            @param msg:     Message which should be sent.\n        " #NEWLINE# ( uriBinary , msgURI ) = recursiveBinarySearch ( msg ) #NEWLINE# WebSocketServerProtocol . sendMessage ( self , json . dumps ( msgURI ) ) #NEWLINE# for binData in uriBinary : #NEWLINE# #INDENT# WebSocketServerProtocol . sendMessage ( self , ( binData [ 0 ] + binData [ 1 ] . getvalue ( ) ) , binary = True )