Skip to main content

pamoja_gateway_station_message_json

Function pamoja_gateway_station_message_json 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_json( message: *const PamojaGatewayStationMessage, out_text: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand description

Writes a message as the websocket carries it.

§Arguments

  • message - the message.
  • out_text - receives the text, which the caller releases with pamoja_buffer_free.

§Returns

PamojaStatus::Ok once written.

§Safety

message must be a live handle, and out_text must point to writable storage.