fix: use on, once is not available in all environments
This commit is contained in:
parent
f66969c698
commit
d78ad5eb29
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue