#NEWLINE# @ classmethod #NEWLINE# def send_to_websocket_server( cls , internal_url , data ) : #NEWLINE# #INDENT# '\n        Broadcast the message to anyone listening.\n\n        :param internal_url: Full internal websocket URL\n        :type internal_url: str\n        :param data: Final data to be sent to the websocket server\n        :type data: JSON\n        :return: urllib2 response object\n        ' #NEWLINE# request = urllib2 . Request ( internal_url , data , { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = urllib2 . urlopen ( request , json . dumps ( data ) ) #NEWLINE# return response