You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Doesn't connect when being used in react native #2
I have followed the instructions, fortunately, the app doesn't crash however anything happens.Here is my code is written in react native.
`
import wamp from 'wamp.js';
var connection = new wamp.Connection({url: 'http://localhost:3009', realm: 'realm1'});
connection.onopen = function (session) {
// 1) subscribe to a topic
function onevent(args) {
console.log("Event:", args[0]);
}
session.subscribe('onNewData', onevent);
};
@Akaiz I simplified the implementation, only support WebSocket, so your url must be a ws url. furthermore, you can watch your wamp server log to see what happened when open.
Activity
webee commentedon Apr 6, 2017
@Akaiz I simplified the implementation, only support WebSocket, so your url must be a ws url. furthermore, you can watch your wamp server log to see what happened when open.