@illgrenoble/webx-client 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/input/GuacamoleKeyboard.js +118 -99
- package/dist/input/WebXKeyboard.d.ts +0 -16
- package/dist/input/WebXKeyboard.js +3 -27
- package/dist/input/WebXKeyboard.js.map +1 -1
- package/package.json +1 -1
- package/dist/display/WebXMaterialProvider.d.ts +0 -8
- package/dist/display/WebXMaterialProvider.js +0 -71
- package/dist/display/WebXMaterialProvider.js.map +0 -1
- package/dist/input/WebXNewKeyboard.d.ts +0 -62
- package/dist/input/WebXNewKeyboard.js +0 -94
- package/dist/input/WebXNewKeyboard.js.map +0 -1
- package/dist/input/keyboard/WebXKeyEvent.d.ts +0 -79
- package/dist/input/keyboard/WebXKeyEvent.js +0 -324
- package/dist/input/keyboard/WebXKeyEvent.js.map +0 -1
- package/dist/input/keyboard/WebXKeyPressEvent.d.ts +0 -30
- package/dist/input/keyboard/WebXKeyPressEvent.js +0 -44
- package/dist/input/keyboard/WebXKeyPressEvent.js.map +0 -1
- package/dist/input/keyboard/WebXKeyUpEvent.d.ts +0 -33
- package/dist/input/keyboard/WebXKeyUpEvent.js +0 -31
- package/dist/input/keyboard/WebXKeyUpEvent.js.map +0 -1
- package/dist/input/keyboard/WebXKeyboardModifierState.d.ts +0 -108
- package/dist/input/keyboard/WebXKeyboardModifierState.js +0 -148
- package/dist/input/keyboard/WebXKeyboardModifierState.js.map +0 -1
- package/dist/input/keyboard/WebXKeyboardUtils.d.ts +0 -25
- package/dist/input/keyboard/WebXKeyboardUtils.js +0 -63
- package/dist/input/keyboard/WebXKeyboardUtils.js.map +0 -1
- package/dist/input/keyboard/WebXKeydownEvent.d.ts +0 -46
- package/dist/input/keyboard/WebXKeydownEvent.js +0 -66
- package/dist/input/keyboard/WebXKeydownEvent.js.map +0 -1
- package/dist/input/keyboard/index.d.ts +0 -6
- package/dist/input/keyboard/index.js +0 -23
- package/dist/input/keyboard/index.js.map +0 -1
- package/dist/lib/GuacamoleKeyboard.js +0 -1290
- package/dist/lib/GuacamoleKeyboard.js.map +0 -1
- package/dist/message/WebXPollMessage.d.ts +0 -4
- package/dist/message/WebXPollMessage.js +0 -12
- package/dist/message/WebXPollMessage.js.map +0 -1
- package/dist/src/WebXClient.d.ts +0 -261
- package/dist/src/WebXClient.js +0 -571
- package/dist/src/WebXClient.js.map +0 -1
- package/dist/src/WebXEngine.d.ts +0 -4
- package/dist/src/WebXEngine.js +0 -7
- package/dist/src/WebXEngine.js.map +0 -1
- package/dist/src/display/WebXCursor.d.ts +0 -88
- package/dist/src/display/WebXCursor.js +0 -150
- package/dist/src/display/WebXCursor.js.map +0 -1
- package/dist/src/display/WebXCursorFactory.d.ts +0 -36
- package/dist/src/display/WebXCursorFactory.js +0 -59
- package/dist/src/display/WebXCursorFactory.js.map +0 -1
- package/dist/src/display/WebXDisplay.d.ts +0 -226
- package/dist/src/display/WebXDisplay.js +0 -424
- package/dist/src/display/WebXDisplay.js.map +0 -1
- package/dist/src/display/WebXMaterial.d.ts +0 -14
- package/dist/src/display/WebXMaterial.js +0 -140
- package/dist/src/display/WebXMaterial.js.map +0 -1
- package/dist/src/display/WebXSubImage.d.ts +0 -50
- package/dist/src/display/WebXSubImage.js +0 -26
- package/dist/src/display/WebXSubImage.js.map +0 -1
- package/dist/src/display/WebXTextureFactory.d.ts +0 -54
- package/dist/src/display/WebXTextureFactory.js +0 -160
- package/dist/src/display/WebXTextureFactory.js.map +0 -1
- package/dist/src/display/WebXWindow.d.ts +0 -241
- package/dist/src/display/WebXWindow.js +0 -438
- package/dist/src/display/WebXWindow.js.map +0 -1
- package/dist/src/display/WebXWindowProperties.d.ts +0 -44
- package/dist/src/display/WebXWindowProperties.js +0 -25
- package/dist/src/display/WebXWindowProperties.js.map +0 -1
- package/dist/src/display/index.d.ts +0 -7
- package/dist/src/display/index.js +0 -24
- package/dist/src/display/index.js.map +0 -1
- package/dist/src/index.d.ts +0 -7
- package/dist/src/index.js +0 -24
- package/dist/src/index.js.map +0 -1
- package/dist/src/input/WebXKeyboard.d.ts +0 -265
- package/dist/src/input/WebXKeyboard.js +0 -632
- package/dist/src/input/WebXKeyboard.js.map +0 -1
- package/dist/src/input/WebXMouse.d.ts +0 -125
- package/dist/src/input/WebXMouse.js +0 -231
- package/dist/src/input/WebXMouse.js.map +0 -1
- package/dist/src/input/index.d.ts +0 -4
- package/dist/src/input/index.js +0 -21
- package/dist/src/input/index.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyEvent.d.ts +0 -79
- package/dist/src/input/keyboard/WebXKeyEvent.js +0 -324
- package/dist/src/input/keyboard/WebXKeyEvent.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyPressEvent.d.ts +0 -30
- package/dist/src/input/keyboard/WebXKeyPressEvent.js +0 -44
- package/dist/src/input/keyboard/WebXKeyPressEvent.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyUpEvent.d.ts +0 -33
- package/dist/src/input/keyboard/WebXKeyUpEvent.js +0 -31
- package/dist/src/input/keyboard/WebXKeyUpEvent.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyboardModifierState.d.ts +0 -108
- package/dist/src/input/keyboard/WebXKeyboardModifierState.js +0 -148
- package/dist/src/input/keyboard/WebXKeyboardModifierState.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeyboardUtils.d.ts +0 -25
- package/dist/src/input/keyboard/WebXKeyboardUtils.js +0 -63
- package/dist/src/input/keyboard/WebXKeyboardUtils.js.map +0 -1
- package/dist/src/input/keyboard/WebXKeydownEvent.d.ts +0 -46
- package/dist/src/input/keyboard/WebXKeydownEvent.js +0 -66
- package/dist/src/input/keyboard/WebXKeydownEvent.js.map +0 -1
- package/dist/src/input/keyboard/index.d.ts +0 -6
- package/dist/src/input/keyboard/index.js +0 -23
- package/dist/src/input/keyboard/index.js.map +0 -1
- package/dist/src/input/mouse/WebXMouseState.d.ts +0 -190
- package/dist/src/input/mouse/WebXMouseState.js +0 -217
- package/dist/src/input/mouse/WebXMouseState.js.map +0 -1
- package/dist/src/input/mouse/index.d.ts +0 -1
- package/dist/src/input/mouse/index.js +0 -18
- package/dist/src/input/mouse/index.js.map +0 -1
- package/dist/src/instruction/WebXClipboardInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXClipboardInstruction.js +0 -23
- package/dist/src/instruction/WebXClipboardInstruction.js.map +0 -1
- package/dist/src/instruction/WebXConnectInstruction.d.ts +0 -19
- package/dist/src/instruction/WebXConnectInstruction.js +0 -24
- package/dist/src/instruction/WebXConnectInstruction.js.map +0 -1
- package/dist/src/instruction/WebXCursorImageInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXCursorImageInstruction.js +0 -23
- package/dist/src/instruction/WebXCursorImageInstruction.js.map +0 -1
- package/dist/src/instruction/WebXDataAckInstruction.d.ts +0 -25
- package/dist/src/instruction/WebXDataAckInstruction.js +0 -26
- package/dist/src/instruction/WebXDataAckInstruction.js.map +0 -1
- package/dist/src/instruction/WebXImageInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXImageInstruction.js +0 -23
- package/dist/src/instruction/WebXImageInstruction.js.map +0 -1
- package/dist/src/instruction/WebXInstruction.d.ts +0 -29
- package/dist/src/instruction/WebXInstruction.js +0 -28
- package/dist/src/instruction/WebXInstruction.js.map +0 -1
- package/dist/src/instruction/WebXInstructionResponse.d.ts +0 -66
- package/dist/src/instruction/WebXInstructionResponse.js +0 -78
- package/dist/src/instruction/WebXInstructionResponse.js.map +0 -1
- package/dist/src/instruction/WebXInstructionType.d.ts +0 -63
- package/dist/src/instruction/WebXInstructionType.js +0 -96
- package/dist/src/instruction/WebXInstructionType.js.map +0 -1
- package/dist/src/instruction/WebXKeyboardInstruction.d.ts +0 -23
- package/dist/src/instruction/WebXKeyboardInstruction.js +0 -25
- package/dist/src/instruction/WebXKeyboardInstruction.js.map +0 -1
- package/dist/src/instruction/WebXMouseInstruction.d.ts +0 -28
- package/dist/src/instruction/WebXMouseInstruction.js +0 -27
- package/dist/src/instruction/WebXMouseInstruction.js.map +0 -1
- package/dist/src/instruction/WebXPongInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXPongInstruction.js +0 -23
- package/dist/src/instruction/WebXPongInstruction.js.map +0 -1
- package/dist/src/instruction/WebXQualityInstruction.d.ts +0 -19
- package/dist/src/instruction/WebXQualityInstruction.js +0 -24
- package/dist/src/instruction/WebXQualityInstruction.js.map +0 -1
- package/dist/src/instruction/WebXScreenInstruction.d.ts +0 -12
- package/dist/src/instruction/WebXScreenInstruction.js +0 -20
- package/dist/src/instruction/WebXScreenInstruction.js.map +0 -1
- package/dist/src/instruction/WebXShapeInstruction.d.ts +0 -18
- package/dist/src/instruction/WebXShapeInstruction.js +0 -23
- package/dist/src/instruction/WebXShapeInstruction.js.map +0 -1
- package/dist/src/instruction/WebXWindowsInstruction.d.ts +0 -13
- package/dist/src/instruction/WebXWindowsInstruction.js +0 -21
- package/dist/src/instruction/WebXWindowsInstruction.js.map +0 -1
- package/dist/src/instruction/index.d.ts +0 -15
- package/dist/src/instruction/index.js +0 -32
- package/dist/src/instruction/index.js.map +0 -1
- package/dist/src/message/WebXClipboardMessage.d.ts +0 -19
- package/dist/src/message/WebXClipboardMessage.js +0 -23
- package/dist/src/message/WebXClipboardMessage.js.map +0 -1
- package/dist/src/message/WebXConnectionMessage.d.ts +0 -12
- package/dist/src/message/WebXConnectionMessage.js +0 -20
- package/dist/src/message/WebXConnectionMessage.js.map +0 -1
- package/dist/src/message/WebXCursorImageMessage.d.ts +0 -46
- package/dist/src/message/WebXCursorImageMessage.js +0 -35
- package/dist/src/message/WebXCursorImageMessage.js.map +0 -1
- package/dist/src/message/WebXImageMessage.d.ts +0 -41
- package/dist/src/message/WebXImageMessage.js +0 -33
- package/dist/src/message/WebXImageMessage.js.map +0 -1
- package/dist/src/message/WebXMessage.d.ts +0 -24
- package/dist/src/message/WebXMessage.js +0 -23
- package/dist/src/message/WebXMessage.js.map +0 -1
- package/dist/src/message/WebXMessageType.d.ts +0 -59
- package/dist/src/message/WebXMessageType.js +0 -64
- package/dist/src/message/WebXMessageType.js.map +0 -1
- package/dist/src/message/WebXMouseMessage.d.ts +0 -30
- package/dist/src/message/WebXMouseMessage.js +0 -29
- package/dist/src/message/WebXMouseMessage.js.map +0 -1
- package/dist/src/message/WebXNopMessage.d.ts +0 -10
- package/dist/src/message/WebXNopMessage.js +0 -18
- package/dist/src/message/WebXNopMessage.js.map +0 -1
- package/dist/src/message/WebXPingMessage.d.ts +0 -13
- package/dist/src/message/WebXPingMessage.js +0 -21
- package/dist/src/message/WebXPingMessage.js.map +0 -1
- package/dist/src/message/WebXQualityMessage.d.ts +0 -39
- package/dist/src/message/WebXQualityMessage.js +0 -32
- package/dist/src/message/WebXQualityMessage.js.map +0 -1
- package/dist/src/message/WebXScreenMessage.d.ts +0 -37
- package/dist/src/message/WebXScreenMessage.js +0 -29
- package/dist/src/message/WebXScreenMessage.js.map +0 -1
- package/dist/src/message/WebXShapeMessage.d.ts +0 -31
- package/dist/src/message/WebXShapeMessage.js +0 -29
- package/dist/src/message/WebXShapeMessage.js.map +0 -1
- package/dist/src/message/WebXSubImagesMessage.d.ts +0 -31
- package/dist/src/message/WebXSubImagesMessage.js +0 -29
- package/dist/src/message/WebXSubImagesMessage.js.map +0 -1
- package/dist/src/message/WebXWindowsMessage.d.ts +0 -21
- package/dist/src/message/WebXWindowsMessage.js +0 -25
- package/dist/src/message/WebXWindowsMessage.js.map +0 -1
- package/dist/src/message/index.d.ts +0 -14
- package/dist/src/message/index.js +0 -31
- package/dist/src/message/index.js.map +0 -1
- package/dist/src/tracer/WebXDebugImageMessageHandler.d.ts +0 -48
- package/dist/src/tracer/WebXDebugImageMessageHandler.js +0 -102
- package/dist/src/tracer/WebXDebugImageMessageHandler.js.map +0 -1
- package/dist/src/tracer/WebXHandler.d.ts +0 -14
- package/dist/src/tracer/WebXHandler.js +0 -3
- package/dist/src/tracer/WebXHandler.js.map +0 -1
- package/dist/src/tracer/WebXInstructionHandler.d.ts +0 -21
- package/dist/src/tracer/WebXInstructionHandler.js +0 -13
- package/dist/src/tracer/WebXInstructionHandler.js.map +0 -1
- package/dist/src/tracer/WebXMessageHandler.d.ts +0 -21
- package/dist/src/tracer/WebXMessageHandler.js +0 -13
- package/dist/src/tracer/WebXMessageHandler.js.map +0 -1
- package/dist/src/tracer/WebXStatsHandler.d.ts +0 -23
- package/dist/src/tracer/WebXStatsHandler.js +0 -13
- package/dist/src/tracer/WebXStatsHandler.js.map +0 -1
- package/dist/src/tracer/index.d.ts +0 -5
- package/dist/src/tracer/index.js +0 -22
- package/dist/src/tracer/index.js.map +0 -1
- package/dist/src/transport/WebXBinarySerializer.d.ts +0 -31
- package/dist/src/transport/WebXBinarySerializer.js +0 -63
- package/dist/src/transport/WebXBinarySerializer.js.map +0 -1
- package/dist/src/transport/WebXInstructionBuffer.d.ts +0 -55
- package/dist/src/transport/WebXInstructionBuffer.js +0 -109
- package/dist/src/transport/WebXInstructionBuffer.js.map +0 -1
- package/dist/src/transport/WebXInstructionEncoder.d.ts +0 -181
- package/dist/src/transport/WebXInstructionEncoder.js +0 -294
- package/dist/src/transport/WebXInstructionEncoder.js.map +0 -1
- package/dist/src/transport/WebXMessageBuffer.d.ts +0 -80
- package/dist/src/transport/WebXMessageBuffer.js +0 -104
- package/dist/src/transport/WebXMessageBuffer.js.map +0 -1
- package/dist/src/transport/WebXMessageDecoder.d.ts +0 -108
- package/dist/src/transport/WebXMessageDecoder.js +0 -332
- package/dist/src/transport/WebXMessageDecoder.js.map +0 -1
- package/dist/src/transport/index.d.ts +0 -5
- package/dist/src/transport/index.js +0 -22
- package/dist/src/transport/index.js.map +0 -1
- package/dist/src/tunnel/WebXTunnel.d.ts +0 -93
- package/dist/src/tunnel/WebXTunnel.js +0 -156
- package/dist/src/tunnel/WebXTunnel.js.map +0 -1
- package/dist/src/tunnel/WebXWebSocketTunnel.d.ts +0 -40
- package/dist/src/tunnel/WebXWebSocketTunnel.js +0 -88
- package/dist/src/tunnel/WebXWebSocketTunnel.js.map +0 -1
- package/dist/src/tunnel/index.d.ts +0 -2
- package/dist/src/tunnel/index.js +0 -19
- package/dist/src/tunnel/index.js.map +0 -1
- package/dist/src/utils/WebXColorGenerator.d.ts +0 -24
- package/dist/src/utils/WebXColorGenerator.js +0 -46
- package/dist/src/utils/WebXColorGenerator.js.map +0 -1
- package/dist/src/utils/WebXVersion.d.ts +0 -34
- package/dist/src/utils/WebXVersion.js +0 -25
- package/dist/src/utils/WebXVersion.js.map +0 -1
- package/dist/src/utils/index.d.ts +0 -2
- package/dist/src/utils/index.js +0 -19
- package/dist/src/utils/index.js.map +0 -1
- package/dist/tracer/DemoVisualMessageHandler.d.ts +0 -15
- package/dist/tracer/DemoVisualMessageHandler.js +0 -55
- package/dist/tracer/DemoVisualMessageHandler.js.map +0 -1
- package/dist/tracer/WebXVisualMessageHandler.d.ts +0 -15
- package/dist/tracer/WebXVisualMessageHandler.js +0 -55
- package/dist/tracer/WebXVisualMessageHandler.js.map +0 -1
- package/dist/tunnel/WebXDefaultQoSHandler.d.ts +0 -16
- package/dist/tunnel/WebXDefaultQoSHandler.js +0 -57
- package/dist/tunnel/WebXDefaultQoSHandler.js.map +0 -1
- package/dist/tunnel/WebXQoSHandler.d.ts +0 -6
- package/dist/tunnel/WebXQoSHandler.js +0 -7
- package/dist/tunnel/WebXQoSHandler.js.map +0 -1
- package/dist/tunnel/WebXSocketIOTunnel.d.ts +0 -15
- package/dist/tunnel/WebXSocketIOTunnel.js +0 -41
- package/dist/tunnel/WebXSocketIOTunnel.js.map +0 -1
- package/dist/utils/ColorGenerator.d.ts +0 -24
- package/dist/utils/ColorGenerator.js +0 -46
- package/dist/utils/ColorGenerator.js.map +0 -1
- package/dist/utils/Config.d.ts +0 -4
- package/dist/utils/Config.js +0 -10
- package/dist/utils/Config.js.map +0 -1
- package/dist/utils/WebXAsyncExec.d.ts +0 -5
- package/dist/utils/WebXAsyncExec.js +0 -18
- package/dist/utils/WebXAsyncExec.js.map +0 -1
- package/dist/utils/WebXColourGenerator.d.ts +0 -5
- package/dist/utils/WebXColourGenerator.js +0 -27
- package/dist/utils/WebXColourGenerator.js.map +0 -1
- package/dist/utils/WebXFileSize.d.ts +0 -3
- package/dist/utils/WebXFileSize.js +0 -14
- package/dist/utils/WebXFileSize.js.map +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { WebXInstruction } from '../instruction';
|
|
2
|
-
import { WebXMessage } from '../message';
|
|
3
|
-
import { WebXMessageBuffer } from '.';
|
|
4
|
-
import { WebXTextureFactory } from '../display';
|
|
5
|
-
/**
|
|
6
|
-
* Serializes and deserializes WebX instructions and messages.
|
|
7
|
-
*/
|
|
8
|
-
export declare class WebXBinarySerializer {
|
|
9
|
-
private readonly _instructionEncoder;
|
|
10
|
-
private readonly _messageDecoder;
|
|
11
|
-
/**
|
|
12
|
-
* Creates a new instance of WebXBinarySerializer.
|
|
13
|
-
*
|
|
14
|
-
* @param textureFactory The texture factory used for decoding image data.
|
|
15
|
-
*/
|
|
16
|
-
constructor(textureFactory: WebXTextureFactory);
|
|
17
|
-
/**
|
|
18
|
-
* Serializes a WebXInstruction into a binary ArrayBuffer.
|
|
19
|
-
*
|
|
20
|
-
* @param instruction The instruction to serialize.
|
|
21
|
-
* @returns The serialized ArrayBuffer.
|
|
22
|
-
*/
|
|
23
|
-
serializeInstruction(instruction: WebXInstruction): ArrayBuffer;
|
|
24
|
-
/**
|
|
25
|
-
* Deserializes a binary message buffer into a WebXMessage object.
|
|
26
|
-
*
|
|
27
|
-
* @param buffer The binary message buffer to deserialize.
|
|
28
|
-
* @returns A promise that resolves to the deserialized WebXMessage.
|
|
29
|
-
*/
|
|
30
|
-
deserializeMessage(buffer: WebXMessageBuffer): Promise<WebXMessage>;
|
|
31
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.WebXBinarySerializer = void 0;
|
|
13
|
-
const _1 = require(".");
|
|
14
|
-
/**
|
|
15
|
-
* Serializes and deserializes WebX instructions and messages.
|
|
16
|
-
*/
|
|
17
|
-
class WebXBinarySerializer {
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new instance of WebXBinarySerializer.
|
|
20
|
-
*
|
|
21
|
-
* @param textureFactory The texture factory used for decoding image data.
|
|
22
|
-
*/
|
|
23
|
-
constructor(textureFactory) {
|
|
24
|
-
this._instructionEncoder = new _1.WebXInstructionEncoder();
|
|
25
|
-
this._messageDecoder = new _1.WebXMessageDecoder(textureFactory);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Serializes a WebXInstruction into a binary ArrayBuffer.
|
|
29
|
-
*
|
|
30
|
-
* @param instruction The instruction to serialize.
|
|
31
|
-
* @returns The serialized ArrayBuffer.
|
|
32
|
-
*/
|
|
33
|
-
serializeInstruction(instruction) {
|
|
34
|
-
// return instruction.toJsonString();
|
|
35
|
-
const encoded = this._instructionEncoder.encode(instruction);
|
|
36
|
-
if (encoded == null) {
|
|
37
|
-
console.warn('Could not serialize instruction: Unknown type');
|
|
38
|
-
}
|
|
39
|
-
return encoded;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Deserializes a binary message buffer into a WebXMessage object.
|
|
43
|
-
*
|
|
44
|
-
* @param buffer The binary message buffer to deserialize.
|
|
45
|
-
* @returns A promise that resolves to the deserialized WebXMessage.
|
|
46
|
-
*/
|
|
47
|
-
deserializeMessage(buffer) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
try {
|
|
50
|
-
const message = yield this._messageDecoder.decode(buffer);
|
|
51
|
-
if (message == null) {
|
|
52
|
-
console.error(`Failed to decode message data`);
|
|
53
|
-
}
|
|
54
|
-
return message;
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
console.error(`Caught error decoding message data: ${error.message}`);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.WebXBinarySerializer = WebXBinarySerializer;
|
|
63
|
-
//# sourceMappingURL=WebXBinarySerializer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebXBinarySerializer.js","sourceRoot":"","sources":["../../../src/transport/WebXBinarySerializer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,wBAAkF;AAGlF;;GAEG;AACH,MAAa,oBAAoB;IAK/B;;;;OAIG;IACH,YAAY,cAAkC;QAC5C,IAAI,CAAC,mBAAmB,GAAG,IAAI,yBAAsB,EAAE,CAAC;QACxD,IAAI,CAAC,eAAe,GAAG,IAAI,qBAAkB,CAAC,cAAc,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACH,oBAAoB,CAAC,WAA4B;QAC/C,qCAAqC;QACrC,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC7D,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;YACpB,OAAO,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACG,kBAAkB,CAAC,MAAyB;;YAChD,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBAC1D,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;oBACpB,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;gBACjD,CAAC;gBACD,OAAO,OAAO,CAAC;YAEjB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,uCAAuC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACxE,CAAC;QACH,CAAC;KAAA;CAGF;AAlDD,oDAkDC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { WebXInstruction } from '../instruction';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a buffer for encoding and decoding WebX instructions.
|
|
4
|
-
*
|
|
5
|
-
* This class provides methods to write and read data in a structured format
|
|
6
|
-
* for communication with the WebX Engine.
|
|
7
|
-
*/
|
|
8
|
-
export declare class WebXInstructionBuffer {
|
|
9
|
-
private readonly _buffer;
|
|
10
|
-
private _offset;
|
|
11
|
-
/**
|
|
12
|
-
* Creates a new instance of WebXInstructionBuffer.
|
|
13
|
-
*
|
|
14
|
-
* @param instruction The WebX instruction.
|
|
15
|
-
* @param length The length of the buffer in bytes.
|
|
16
|
-
*/
|
|
17
|
-
constructor(instruction: WebXInstruction, length: number);
|
|
18
|
-
private _getNextOffset;
|
|
19
|
-
/**
|
|
20
|
-
* Write a signed 32 bit integer to the buffer
|
|
21
|
-
* @param value the value to write
|
|
22
|
-
*/
|
|
23
|
-
putInt32(value: number): WebXInstructionBuffer;
|
|
24
|
-
/**
|
|
25
|
-
* Write an unsigned 8 bit integer to the buffer
|
|
26
|
-
* @param value the value to write
|
|
27
|
-
*/
|
|
28
|
-
putUInt8(value: number): WebXInstructionBuffer;
|
|
29
|
-
/**
|
|
30
|
-
* Write an unsigned 32 bit integer to the buffer
|
|
31
|
-
* @param value the value to write
|
|
32
|
-
*/
|
|
33
|
-
putUInt32(value: number): WebXInstructionBuffer;
|
|
34
|
-
/**
|
|
35
|
-
* Write an array of unsigned 8 bit integers to the buffer
|
|
36
|
-
* @param array the array to write
|
|
37
|
-
* @param length the length of the array
|
|
38
|
-
*/
|
|
39
|
-
putUInt8Array(array: Uint8Array, length: number): WebXInstructionBuffer;
|
|
40
|
-
/**
|
|
41
|
-
* Write a string to the buffer
|
|
42
|
-
* @param value the value to write
|
|
43
|
-
*/
|
|
44
|
-
putString(value: string): WebXInstructionBuffer;
|
|
45
|
-
/**
|
|
46
|
-
* Write a boolean to the buffer
|
|
47
|
-
* @param value the value to write
|
|
48
|
-
*/
|
|
49
|
-
putBoolean(value: boolean): WebXInstructionBuffer;
|
|
50
|
-
/**
|
|
51
|
-
* Get the array buffer
|
|
52
|
-
* @returns the array buffer
|
|
53
|
-
*/
|
|
54
|
-
buffer(): ArrayBuffer;
|
|
55
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebXInstructionBuffer = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Represents a buffer for encoding and decoding WebX instructions.
|
|
6
|
-
*
|
|
7
|
-
* This class provides methods to write and read data in a structured format
|
|
8
|
-
* for communication with the WebX Engine.
|
|
9
|
-
*/
|
|
10
|
-
class WebXInstructionBuffer {
|
|
11
|
-
/**
|
|
12
|
-
* Creates a new instance of WebXInstructionBuffer.
|
|
13
|
-
*
|
|
14
|
-
* @param instruction The WebX instruction.
|
|
15
|
-
* @param length The length of the buffer in bytes.
|
|
16
|
-
*/
|
|
17
|
-
constructor(instruction, length) {
|
|
18
|
-
// 16 for sessionID place holder (set by the relay), 4 for the clientId (set by the relay) and 8 for the instruction type and id, 4 padding
|
|
19
|
-
// Maintain 8 bit alignment to ensure long values can be written without additional padding
|
|
20
|
-
const headerSize = 32;
|
|
21
|
-
this._buffer = new ArrayBuffer(length + headerSize);
|
|
22
|
-
this._offset = 20;
|
|
23
|
-
// add the header
|
|
24
|
-
if (instruction.synchronous) {
|
|
25
|
-
this.putUInt32(0x80000000 | instruction.type);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this.putUInt32(instruction.type);
|
|
29
|
-
}
|
|
30
|
-
this.putUInt32(instruction.id);
|
|
31
|
-
// Padding to make up 32 bytes (maintaining 8 bit alignment)
|
|
32
|
-
this.putUInt32(0);
|
|
33
|
-
}
|
|
34
|
-
_getNextOffset(sizeOfData) {
|
|
35
|
-
// Ensure alignment
|
|
36
|
-
const padding = this._offset % sizeOfData > 0 ? sizeOfData - (this._offset % sizeOfData) : 0;
|
|
37
|
-
const position = this._offset + padding;
|
|
38
|
-
this._offset += sizeOfData + padding;
|
|
39
|
-
return position;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Write a signed 32 bit integer to the buffer
|
|
43
|
-
* @param value the value to write
|
|
44
|
-
*/
|
|
45
|
-
putInt32(value) {
|
|
46
|
-
const offset = this._getNextOffset(4);
|
|
47
|
-
const typedArray = new Int32Array(this._buffer, offset, 1);
|
|
48
|
-
typedArray[0] = value;
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Write an unsigned 8 bit integer to the buffer
|
|
53
|
-
* @param value the value to write
|
|
54
|
-
*/
|
|
55
|
-
putUInt8(value) {
|
|
56
|
-
const offset = this._getNextOffset(1);
|
|
57
|
-
const typedArray = new Uint8Array(this._buffer, offset, 1);
|
|
58
|
-
typedArray[0] = value;
|
|
59
|
-
return this;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Write an unsigned 32 bit integer to the buffer
|
|
63
|
-
* @param value the value to write
|
|
64
|
-
*/
|
|
65
|
-
putUInt32(value) {
|
|
66
|
-
const offset = this._getNextOffset(4);
|
|
67
|
-
const typedArray = new Uint32Array(this._buffer, offset, 1);
|
|
68
|
-
typedArray[0] = value;
|
|
69
|
-
return this;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Write an array of unsigned 8 bit integers to the buffer
|
|
73
|
-
* @param array the array to write
|
|
74
|
-
* @param length the length of the array
|
|
75
|
-
*/
|
|
76
|
-
putUInt8Array(array, length) {
|
|
77
|
-
const offset = this._getNextOffset(8);
|
|
78
|
-
const typedArray = new Uint8Array(this._buffer, offset, length);
|
|
79
|
-
typedArray.set(array);
|
|
80
|
-
return this;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Write a string to the buffer
|
|
84
|
-
* @param value the value to write
|
|
85
|
-
*/
|
|
86
|
-
putString(value) {
|
|
87
|
-
for (let i = 0; i < value.length; i++) {
|
|
88
|
-
this.putUInt8(value.charCodeAt(i));
|
|
89
|
-
}
|
|
90
|
-
return this;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Write a boolean to the buffer
|
|
94
|
-
* @param value the value to write
|
|
95
|
-
*/
|
|
96
|
-
putBoolean(value) {
|
|
97
|
-
this.putUInt32(value === true ? 0xff : 0x00);
|
|
98
|
-
return this;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Get the array buffer
|
|
102
|
-
* @returns the array buffer
|
|
103
|
-
*/
|
|
104
|
-
buffer() {
|
|
105
|
-
return this._buffer;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.WebXInstructionBuffer = WebXInstructionBuffer;
|
|
109
|
-
//# sourceMappingURL=WebXInstructionBuffer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebXInstructionBuffer.js","sourceRoot":"","sources":["../../../src/transport/WebXInstructionBuffer.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { WebXInstruction } from '../instruction';
|
|
2
|
-
/**
|
|
3
|
-
* Encodes WebX instructions into a format suitable for transmission.
|
|
4
|
-
* This class handles various instruction types and ensures they are
|
|
5
|
-
* serialized correctly.
|
|
6
|
-
*/
|
|
7
|
-
export declare class WebXInstructionEncoder {
|
|
8
|
-
/**
|
|
9
|
-
* Convert the given instruction to an array buffer ready to be sent along the wire
|
|
10
|
-
* @param instruction the instruction to encode
|
|
11
|
-
* @returns The encoded instruction as an ArrayBuffer.
|
|
12
|
-
*/
|
|
13
|
-
encode(instruction: WebXInstruction): ArrayBuffer;
|
|
14
|
-
/**
|
|
15
|
-
* Create a new mouse instruction
|
|
16
|
-
* @param instruction the mouse instruction to encode
|
|
17
|
-
* Structure:
|
|
18
|
-
* Header: 32 bytes
|
|
19
|
-
* sessionId: 16 bytes
|
|
20
|
-
* clientId:4 bytes
|
|
21
|
-
* type: 4 bytes
|
|
22
|
-
* id: 4 bytes
|
|
23
|
-
* padding: 4 bytes
|
|
24
|
-
* Content: 4 bytes
|
|
25
|
-
* x: 4 bytes
|
|
26
|
-
* y: 4 bytes
|
|
27
|
-
* buttonMask: 4 bytes
|
|
28
|
-
*/
|
|
29
|
-
private _createMouseInstruction;
|
|
30
|
-
/**
|
|
31
|
-
* Create a new cursor image instruction
|
|
32
|
-
* @param instruction the cursor image instruction to encode
|
|
33
|
-
* Structure:
|
|
34
|
-
* Header: 32 bytes
|
|
35
|
-
* sessionId: 16 bytes
|
|
36
|
-
* clientId:4 bytes
|
|
37
|
-
* type: 4 bytes
|
|
38
|
-
* id: 4 bytes
|
|
39
|
-
* padding: 4 bytes
|
|
40
|
-
* Content: 4 bytes
|
|
41
|
-
* cursorId: 4 bytes
|
|
42
|
-
*/
|
|
43
|
-
private _createCursorImageInstruction;
|
|
44
|
-
/**
|
|
45
|
-
* Create a new image instruction
|
|
46
|
-
* @param instruction the image instruction to encode
|
|
47
|
-
* Structure:
|
|
48
|
-
* Header: 32 bytes
|
|
49
|
-
* sessionId: 16 bytes
|
|
50
|
-
* clientId:4 bytes
|
|
51
|
-
* type: 4 bytes
|
|
52
|
-
* id: 4 bytes
|
|
53
|
-
* padding: 4 bytes
|
|
54
|
-
* Content: 4 bytes
|
|
55
|
-
* windowId: 4 bytes
|
|
56
|
-
*/
|
|
57
|
-
private _createImageInstruction;
|
|
58
|
-
/**
|
|
59
|
-
* Create a keyboard instruction
|
|
60
|
-
* @param instruction the keyboard instruction to encode
|
|
61
|
-
* Structure:
|
|
62
|
-
* Header: 32 bytes
|
|
63
|
-
* sessionId: 16 bytes
|
|
64
|
-
* clientId: 4 bytes
|
|
65
|
-
* type: 4 bytes
|
|
66
|
-
* id: 4 bytes
|
|
67
|
-
* padding: 4 bytes
|
|
68
|
-
* Content: 8 bytes
|
|
69
|
-
* key (the keyboard key code): 4 bytes
|
|
70
|
-
* pressed: 4 bytes
|
|
71
|
-
*/
|
|
72
|
-
private _createKeyboardInstruction;
|
|
73
|
-
/**
|
|
74
|
-
* Create a screen instruction
|
|
75
|
-
* @param instruction the screen instruction to encode
|
|
76
|
-
* Structure:
|
|
77
|
-
* Header: 32 bytes
|
|
78
|
-
* sessionId: 16 bytes
|
|
79
|
-
* clientId: 4 bytes
|
|
80
|
-
* type: 4 bytes
|
|
81
|
-
* id: 4 bytes
|
|
82
|
-
* padding: 4 bytes
|
|
83
|
-
*/
|
|
84
|
-
private _createScreenInstruction;
|
|
85
|
-
/**
|
|
86
|
-
* Create a windows instruction
|
|
87
|
-
* Structure:
|
|
88
|
-
* Header: 32 bytes
|
|
89
|
-
* sessionId: 16 bytes
|
|
90
|
-
* clientId: 4 bytes
|
|
91
|
-
* type: 4 bytes
|
|
92
|
-
* id: 4 bytes
|
|
93
|
-
* padding: 4 bytes
|
|
94
|
-
* @param instruction the windows instruction to encode
|
|
95
|
-
*/
|
|
96
|
-
private _createWindowsInstruction;
|
|
97
|
-
/**
|
|
98
|
-
* Create a connect instruction
|
|
99
|
-
* @param instruction the connect instruction to encode
|
|
100
|
-
* Structure:
|
|
101
|
-
* Header: 32 bytes
|
|
102
|
-
* sessionId: 16 bytes
|
|
103
|
-
* clientId: 4 bytes
|
|
104
|
-
* type: 4 bytes
|
|
105
|
-
* id: 4 bytes
|
|
106
|
-
* padding: 4 bytes
|
|
107
|
-
*/
|
|
108
|
-
private _createConnectInstruction;
|
|
109
|
-
/**
|
|
110
|
-
* Create a new quality instruction
|
|
111
|
-
* @param instruction the quality instruction to encode
|
|
112
|
-
* Structure:
|
|
113
|
-
* Header: 32 bytes
|
|
114
|
-
* sessionId: 16 bytes
|
|
115
|
-
* clientId: 4 bytes
|
|
116
|
-
* type: 4 bytes
|
|
117
|
-
* id: 4 bytes
|
|
118
|
-
* padding: 4 bytes
|
|
119
|
-
* Content: 4 bytes
|
|
120
|
-
* qualityIndex: 4 bytes
|
|
121
|
-
*/
|
|
122
|
-
private _createQualityInstruction;
|
|
123
|
-
/**
|
|
124
|
-
* Create a new pong instruction
|
|
125
|
-
* @param instruction the pong instruction to encode
|
|
126
|
-
* Structure:
|
|
127
|
-
* Header: 32 bytes
|
|
128
|
-
* sessionId: 16 bytes
|
|
129
|
-
* clientId: 4 bytes
|
|
130
|
-
* type: 4 bytes
|
|
131
|
-
* id: 4 bytes
|
|
132
|
-
* padding: 4 bytes
|
|
133
|
-
* Content: 8 bytes
|
|
134
|
-
* timestampMs: 8 bytes
|
|
135
|
-
*/
|
|
136
|
-
private _createPongInstruction;
|
|
137
|
-
/**
|
|
138
|
-
* Create a new data ack instruction
|
|
139
|
-
* @param instruction the data ack instruction to encode
|
|
140
|
-
* Structure:
|
|
141
|
-
* Header: 32 bytes
|
|
142
|
-
* sessionId: 16 bytes
|
|
143
|
-
* clientId: 4 bytes
|
|
144
|
-
* type: 4 bytes
|
|
145
|
-
* id: 4 bytes
|
|
146
|
-
* padding: 4 bytes
|
|
147
|
-
* Content: 8 bytes
|
|
148
|
-
* timestampMs: 8 bytes
|
|
149
|
-
* dataLength: 4 bytes
|
|
150
|
-
*/
|
|
151
|
-
private _createDataAckInstruction;
|
|
152
|
-
/**
|
|
153
|
-
* Create a new clipboard instruction
|
|
154
|
-
* @param instruction the clipboard instruction to encode
|
|
155
|
-
* Structure:
|
|
156
|
-
* Header: 32 bytes
|
|
157
|
-
* sessionId: 16 bytes
|
|
158
|
-
* clientId: 4 bytes
|
|
159
|
-
* type: 4 bytes
|
|
160
|
-
* id: 4 bytes
|
|
161
|
-
* padding: 4 bytes
|
|
162
|
-
* Content:
|
|
163
|
-
* clipboardContentLength: 4 bytes
|
|
164
|
-
* clipboardContent: N bytes
|
|
165
|
-
*/
|
|
166
|
-
private _createClipboardInstruction;
|
|
167
|
-
/**
|
|
168
|
-
* Create a new shape instruction
|
|
169
|
-
* @param instruction the shape instruction to encode
|
|
170
|
-
* Structure:
|
|
171
|
-
* Header: 32 bytes
|
|
172
|
-
* sessionId: 16 bytes
|
|
173
|
-
* clientId: 4 bytes
|
|
174
|
-
* type: 4 bytes
|
|
175
|
-
* id: 4 bytes
|
|
176
|
-
* padding: 4 bytes
|
|
177
|
-
* Content: 4 bytes
|
|
178
|
-
* windowId: 4 bytes
|
|
179
|
-
*/
|
|
180
|
-
private _createShapeInstruction;
|
|
181
|
-
}
|