createInstantMessage abstract method

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

Creates a new InstantMessage from envelope and plaintext content.

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

head: Message envelope (routing metadata, cannot be null)

body: Plaintext content (message payload, cannot be null)

Returns: New InstantMessage instance

Implementation

InstantMessage createInstantMessage(Envelope head, Content body);