fix: use on, once is not available in all environments

This commit is contained in:
Derrick Hammer 2023-12-28 03:04:24 -05:00
parent f66969c698
commit d78ad5eb29
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export async function subscribeToEntry(
const socket = new WS(wsUrl); const socket = new WS(wsUrl);
socket.once("open", () => { socket.on("open", () => {
const packer = new Packer(); const packer = new Packer();
packer.pack(2); packer.pack(2);
packer.pack(publicKey); packer.pack(publicKey);