createInstantMessage abstract method

InstantMessage createInstantMessage(
  1. Envelope head,
  2. Content body
)

Creates an instant message from envelope (header) and content (body).

Combines routing metadata (envelope) with message payload (content) to form a complete, unencrypted instant message.

@param head - Message envelope (routing metadata: sender/receiver/time)

@param body - Message content (payload: text, file, command, etc.)

@return Complete InstantMessage instance

Implementation

InstantMessage createInstantMessage(Envelope head, Content body);