Input box, sidebar, ws connection

This commit is contained in:
metacryst
2025-10-03 11:44:00 -05:00
parent 989dbd88a0
commit d02103a0bc
16 changed files with 360 additions and 56 deletions

View File

@@ -0,0 +1,22 @@
import Connection from "./Connection.js";
export default class ConnectionHandler {
connection;
disabled = true;
constructor() {
this.connection = new Connection();
}
isOpen() {
if(this.connection.checkOpen()) {
return true;
} else {
return false;
}
}
send(msg) {
this.connection.sendMessage(msg)
}
}