Skip to content
Snippets Groups Projects
Commit db018472 authored by Jennifer Lindgren's avatar Jennifer Lindgren
Browse files

Backend: Lint result socketio method.

parent 70a88535
No related branches found
No related tags found
No related merge requests found
......@@ -293,4 +293,14 @@ def handle_viewer_cursor_changed(data):
'viewer': username,
'fileId': file_id,
'cursorPosition': cursor_position
}, room = 'openProject' + str(project_id), include_self=False)
\ No newline at end of file
}, room = 'openProject' + str(project_id), include_self=False)
@socketio.on('lintResult')
def handle_lint_result(data):
data = json.loads(data)
project_id = data['projectId']
emit('lintResult', {
'on': 'lintResult',
'projectId': project_id,
'lintResult': data['lintResult'],
}, room = 'openProject' + str(project_id), include_self=False)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment