All docs
This doc
Function |
|
---|---|
Description | Returns the events published to WSO2 DAS. |
Output | A JSON object containing the response text in the ‘message’ element within the argument of the success callback. |
var event = { streamName : "TEST", streamVersion : "1.0.0", payloadData : { name : "John", married : "false", age : "27" }, metaData : { NIC: "12345678" }, correlationData : { }, arbitraryDataMap : { } }; client.publishEvent(event, function(data) { console.log (data["message"]); }, function(error) { console.log("error occurred: " + error); });
"Event published successfully"