sg.com.temasys.skylink.sdk.listener.MessagesListener |
Listener comprises of callbacks upon receiving various messages from remote peers.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This is triggered when a broadcast or private peer message is received directly from the peer, i.e.
| |||||||||||
This is triggered when a custom broadcast or private message is received from a remote peer
via a server.
|
This is triggered when a broadcast or private peer message is received directly from the peer, i.e. in a peer to peer manner.
remotePeerId | The id of the remote peer |
---|---|
message | User defined message. May be a 'java.lang.String', 'org.json.JSONObject' or 'org.json.JSONArray'. |
isPrivate | Flag to specify whether the message was sent to us only (as opposed to broadcast to all peers in the room). |
This is triggered when a custom broadcast or private message is received from a remote peer via a server.
remotePeerId | The id of the remote peer |
---|---|
message | User defined message. May be a 'java.lang.String', 'org.json.JSONObject' or 'org.json.JSONArray'. |
isPrivate | Flag to specify whether the message was sent to us only (as opposed to broadcast to all peers in the room). |