move index to src, add .env add types, fix > to actual bash like input and history

This commit is contained in:
creations 2025-05-05 18:55:57 -04:00
parent a65ee6fe67
commit 17467258fc
Signed by: creations
GPG key ID: 8F553AA4320FC711
11 changed files with 339 additions and 180 deletions

View file

@ -3,9 +3,9 @@ import ReconnectingWebSocket from "reconnecting-websocket";
export default class {
private _socket: ReconnectingWebSocket;
private _keepAlive: NodeJS.Timeout | null;
private _callback: (data: { [key: string]: string }) => void;
private _callback: (data: LanyardData) => void;
constructor(callback: (data: { [key: string]: string }) => void) {
constructor(callback: (data: LanyardData) => void) {
this._socket = new ReconnectingWebSocket(
"wss://lanyard.creations.works/socket",
);