Log outgoing messages

This commit is contained in:
Simon Ser 2020-06-07 12:48:48 +02:00
parent 67ca372657
commit 021a5009d5
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -194,7 +194,7 @@ function connect() {
ws.onmessage = function(event) {
var msg = parseMessage(event.data);
console.log(msg);
console.log("Received:", msg);
switch (msg.command) {
case RPL_WELCOME:
@ -273,6 +273,7 @@ function disconnect() {
function sendMessage(msg) {
ws.send(formatMessage(msg));
console.log("Sent:", msg);
}
function executeCommand(s) {