server/app/ws/routes/fs.release.js

12 lines
281 B
JavaScript
Raw Normal View History

2020-11-27 01:57:37 +00:00
module.exports = exports = async (message, di) => {
const { descriptor } = message.data()
if ( message.socket.session.file_descriptors ) {
delete message.socket.session.file_descriptors[descriptor]
}
message.send_response(
message.fresh()
)
}