mirror of
https://git.sr.ht/~emerson/reflectionircd
synced 2025-04-13 09:59:52 +00:00
move adding the newline to the IRCClient class because websockets don't use it
This commit is contained in:
parent
85d47ecf66
commit
a426b08cbb
2 changed files with 2 additions and 2 deletions
|
@ -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 {};
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue