move adding the newline to the IRCClient class because websockets don't use it

This commit is contained in:
emerson 2023-05-31 12:39:35 -04:00
parent 85d47ecf66
commit a426b08cbb
2 changed files with 2 additions and 2 deletions

View file

@ -835,7 +835,7 @@ export class Client {
}) })
const newMsg = new IRCMessage(ourTags, prefix, command, params); const newMsg = new IRCMessage(ourTags, prefix, command, params);
const msgToSend = newMsg.toString(); const msgToSend = newMsg.toString();
this.writeMessage(`${msgToSend}\r\n`); this.writeMessage(msgToSend);
} }
writeMessage(message: string): void {}; writeMessage(message: string): void {};

View file

@ -12,7 +12,7 @@ export class IRCClient extends Client {
writeMessage(message: string) { writeMessage(message: string) {
//console.log(`SENT: ${msgToSend}`); //console.log(`SENT: ${msgToSend}`);
this.socket.write(message); this.socket.write(`${message}\r\n`);
} }
closeConnection() { closeConnection() {