mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-04 12:33:38 +08:00
about to make big changes necessary for real-time editing
This commit is contained in:
@@ -87,11 +87,14 @@ function attachLogInListeners(socket){
|
||||
|
||||
//This works for all ids except negative ids.
|
||||
socket.on("editing", function(data){ //data=[id, Author.name]
|
||||
console.log("EDITING received!");
|
||||
console.log(data);
|
||||
socket.broadcast.emit("editing", data);
|
||||
});
|
||||
|
||||
|
||||
socket.on("blurred", function(data){
|
||||
console.log("BLURRED");
|
||||
socket.broadcast.emit("blurred", data);
|
||||
|
||||
var id = data[0];
|
||||
|
||||
Reference in New Issue
Block a user