diff --git a/packages/rvapi/deno.json b/packages/rvapi/deno.json index 453298d..93c9336 100644 --- a/packages/rvapi/deno.json +++ b/packages/rvapi/deno.json @@ -1,6 +1,6 @@ { "name": "@jersey/rvapi", - "version": "0.0.5", + "version": "0.0.6", "exports": "./src/mod.ts", "imports": { "@denosaurs/event": "jsr:@denosaurs/event@^2.0.2", diff --git a/packages/rvapi/src/bonfire/client.ts b/packages/rvapi/src/bonfire/client.ts index ffd376c..fb60a79 100644 --- a/packages/rvapi/src/bonfire/client.ts +++ b/packages/rvapi/src/bonfire/client.ts @@ -40,7 +40,7 @@ export class Bonfire extends EventEmitter< */ private handle_message(message: ServerMessage) { if (message.type === 'Bulk') { - message.messages.forEach((m) => this.handle_message(m)); + message.v.forEach((m) => this.handle_message(m)); } // deno-lint-ignore no-explicit-any this.emit(message.type, message as any); diff --git a/packages/rvapi/src/bonfire/server_types.ts b/packages/rvapi/src/bonfire/server_types.ts index d2b44c9..3b22601 100644 --- a/packages/rvapi/src/bonfire/server_types.ts +++ b/packages/rvapi/src/bonfire/server_types.ts @@ -26,7 +26,7 @@ interface Authenticated { interface Bulk { type: 'Bulk'; - messages: ServerMessage[]; + v: ServerMessage[]; } interface Pong {