Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿ• MIKA INTERFACEInterface: WebSocketMessage

Mika Scraper v1.1.2


Mika Scraper / WebSocketMessage

Interface: WebSocketMessage

Defined in: src/deepfake/deepfake.ts:14

The WebSocketMessage interface defines the structure of messages transmitted over a WebSocket connection within the Mika Scraper module.

Properties

msg

msg: string

Defined in: src/deepfake/deepfake.ts:15

The message content to be sent or received over the WebSocket. This property is essential for defining the payload of the WebSocket communication.

output?

optional output: object

Defined in: src/deepfake/deepfake.ts:16

An optional object containing additional data related to the WebSocket message.

result

result: string[]

An array of strings that represents the results or data processed as part of the WebSocket communication, if applicable. This can be used to store multiple outputs from a single message interaction.

Example

const message: WebSocketMessage = { msg: "Hello, WebSocket!", output: { result: ["Response 1", "Response 2", "Response 3"] } };

Diagram: Mika Scraper

Last updated on