parameters: (self)
return_statement: return websocket_data
docstring: Return extra data that should be included when submitting data to the browser over the websocket connection
docstring_summary: Return extra data that should be included when submitting data to the browser over the websocket connection
docstring_tokens: Return extra data that should be included when submitting data to the browser over the websocket connection
function: def websocket_emit_data(self):
          '''Return extra data that should be included when submitting data to the browser over the websocket connection'''
          websocket_data = dict(type=self.job_type_name)
          if self.spawned_by_workflow:
              websocket_data.update(dict(workflow_job_id=self.workflow_job_id, workflow_node_id=self.workflow_node_id))
          return websocket_data
function_tokens: def websocket_emit_data ( self ) : websocket_data = dict ( type = self . job_type_name ) if self . spawned_by_workflow : websocket_data . update ( dict ( workflow_job_id = self . workflow_job_id , workflow_node_id = self . workflow_node_id ) ) return websocket_data