server/app/ws/routes/fs.release.js
2020-11-26 19:57:37 -06:00

12 lines
281 B
JavaScript

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()
)
}