diff --git a/src/core/communication/codec/evawire/EvaWireFormat.ts b/src/core/communication/codec/evawire/EvaWireFormat.ts index d591e09c..c1c3a411 100644 --- a/src/core/communication/codec/evawire/EvaWireFormat.ts +++ b/src/core/communication/codec/evawire/EvaWireFormat.ts @@ -24,6 +24,7 @@ export class EvaWireFormat implements ICodec if(value === null) type = 'null'; else if(value instanceof Byte) type = 'byte'; else if(value instanceof Short) type = 'short'; + else if(value instanceof ArrayBuffer) type = 'arraybuffer'; } switch(type) @@ -50,6 +51,9 @@ export class EvaWireFormat implements ICodec writer.writeString(value, true); } break; + case 'arraybuffer': + writer.writeBytes(value); + break; } } @@ -84,4 +88,4 @@ export class EvaWireFormat implements ICodec return wrappers; } -} \ No newline at end of file +} diff --git a/src/nitro/communication/messages/outgoing/camera/RenderRoomMessageComposer.ts b/src/nitro/communication/messages/outgoing/camera/RenderRoomMessageComposer.ts index 61f708fa..6375649f 100644 --- a/src/nitro/communication/messages/outgoing/camera/RenderRoomMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/camera/RenderRoomMessageComposer.ts @@ -1,5 +1,4 @@ import { RenderTexture } from 'pixi.js'; -import { Byte } from '../../../../../core/communication/codec/Byte'; import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; import { PNGEncoder } from '../../../../utils/PNGEncoder'; @@ -26,9 +25,6 @@ export class RenderRoomMessageComposer implements IMessageComposer