8 lines
305 B
TypeScript
8 lines
305 B
TypeScript
import {Socket} from 'socket.io';
|
|
function screenshot(args:Array<string>, curdir:any, buffer:{ [id: string]: string }, socket:Socket):string {
|
|
var buf = "";
|
|
curdir[socket.id][args[0]] = buffer[socket.id];
|
|
buf += "Screenshot saved to " + args[0] + "\n";
|
|
return buf;
|
|
}
|
|
export { screenshot }; |