Skip to content

Commit

Permalink
Publish message .js interface was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoCaixinha committed Jun 7, 2017
1 parent b835818 commit 050f808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RCTRealtimeMessagingIOS.js
Expand Up @@ -49,6 +49,10 @@ class RCTRealtimeMessagingIOS extends React.Component {
ortcClient.unsubscribe(channel, this.id);
}

RTPublishMessage(channel, message, ttl, callBack){
ortcClient.publish(channel, message, ttl, this.id, callBack);
}

RTSendMessage(message, channel){
ortcClient.sendMessage(message, channel, this.id);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-realtimemessaging-ios",
"version": "1.0.17",
"version": "1.0.18",
"description": "The Realtime Framework Cloud Messaging Pub/Sub client for React-Native",
"main": "RCTRealtimeMessagingIOS.js",
"scripts": {
Expand Down

0 comments on commit 050f808

Please sign in to comment.