/* * Created by Trevor Sears . * 6:09 PM -- October 30th, 2019. * Project: @command-socket/core */ import { FormalCommand } from "../../schema/command/formal-command"; import { CommandSocket } from "../../command-socket/command-socket"; import { CommandStructure, CommandStructureParameterType, CommandStructureReturnType } from "../../schema/command/command-structure"; import { CommandSocketIdentity } from "../../schema/command-socket-identity"; /** * A CommandSocket builtin command that provides information about the identity of the responding CommandSocket. * * @author Trevor Sears * @version v0.1.0 * @since v0.1.0 */ export class IdentifyCommand implements FormalCommand { public async execute( params: CommandStructureParameterType, context: CommandSocket): Promise> { // TODO [11/1/19 @ 12:25 AM] - Add more information to this command's return value. return await context.getSocketIdentity(); } } export interface IdentifyCommandStructure extends CommandStructure { }