chore: remove dead code
This commit is contained in:
parent
24f4b85031
commit
45b0c3e28d
2 changed files with 0 additions and 18 deletions
|
|
@ -27,11 +27,6 @@ frappe.socketio = {
|
|||
withCredentials: true,
|
||||
reconnectionAttempts: 3,
|
||||
});
|
||||
} else if (window.location.protocol == "file:") {
|
||||
frappe.socketio.socket = io.connect(window.localStorage.server, {
|
||||
withCredentials: true,
|
||||
reconnectionAttempts: 3,
|
||||
});
|
||||
}
|
||||
|
||||
if (!frappe.socketio.socket) {
|
||||
|
|
|
|||
13
socketio.js
13
socketio.js
|
|
@ -84,7 +84,6 @@ io.on("connection", function (socket) {
|
|||
socket.on("progress_subscribe", function (task_id) {
|
||||
var room = get_task_room(socket, task_id);
|
||||
socket.join(room);
|
||||
send_existing_lines(task_id, socket);
|
||||
});
|
||||
|
||||
socket.on("doc_subscribe", function (doctype, docname) {
|
||||
|
|
@ -198,18 +197,6 @@ subscriber.on("message", function (_channel, message) {
|
|||
|
||||
subscriber.subscribe("events");
|
||||
|
||||
function send_existing_lines(task_id, socket) {
|
||||
var room = get_task_room(socket, task_id);
|
||||
subscriber.hgetall("task_log:" + task_id, function (_err, lines) {
|
||||
io.to(room).emit("task_progress", {
|
||||
task_id: task_id,
|
||||
message: {
|
||||
lines: lines,
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function get_doc_room(socket, doctype, docname) {
|
||||
return get_site_name(socket) + ":doc:" + doctype + "/" + docname;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue