publishLanMessage(params: Object)
Requires:
DeviceKit≥2.1.4@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Description
Send a message via the LAN channel
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Message content |
deviceId | string | Yes | Device ID |
protocol | number | Yes | Protocol number |
| No | Reserved flag for delivery logic configuration; can be extended later, for example to deliver sounds or define follow-up actions | ||
complete | () => void | No | Completion callback (executed on both success and failure) |
| No | Callback on successful API call | ||
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None