mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(apis/websocket): fix undefined error
This commit is contained in:
@@ -55,7 +55,7 @@ export default class Client {
|
||||
send<T extends ServerOperation>(packet: Omit<Packet<T>, 's'>, sequence?: number) {
|
||||
this.#throwIfDisconnected('Cannot send packet to client that has already disconnected')
|
||||
this.#socket.send(serializePacket({ ...packet, s: sequence ?? this.currentSequence++ } as Packet<T>), err => {
|
||||
throw err
|
||||
if (err) throw err
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user