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
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);
};
connection.open();
`
The text was updated successfully, but these errors were encountered:
@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.
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) {
connection.open();
`
The text was updated successfully, but these errors were encountered: