blob: d48cc85ea0f260e7d9d4ab411bede1470cfe1785 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { client } from "../../client";
import queryParser from "../../utils/queryParser";
const { mode } = queryParser();
/**
* Hook for sending messages to the server
* @param {string} message the message to send
*/
export const sendServer = (message: string) => {
console.debug("C: " + message);
mode === "replay"
? client.sender.sendSelf(message)
: client.serv.send(message);
};
|