Commit 5f787383 authored by Kannan V M's avatar Kannan V M
Browse files

add front end connection for socket io

parent 93649a9f
......@@ -522,3 +522,19 @@
var socket = io();
//following should be there when the leaf text is added/changed
var leafdata = {"leaftext":leaftext} //leaftext should be the text inside the leaf
socket.emit('leaf text', leafdata);
socket.on('leaves data', (leavesdata) => {
//set up the tree with the data of all leaves
socket.on('leaf data', (leafdata) => {
//update the tree with the new leaf data
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment