aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendSelf.ts
blob: 15665a72f5b81364bf28e1140bcab03595538c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { client } from "../../client";

/**
 * Hook for sending messages to the client
 * @param {string} message the message to send
 */
export const sendSelf = (message: string) => {
  (<HTMLInputElement>document.getElementById("client_ooclog")).value +=
    `${message}\r\n`;
  client.handleSelf(message);
};