Open DevJett opened 6 years ago
Hi there!
I'm trying to make a socket connection in react native but I'm getting 2 errors and the server says it successfully connected.
my code
let connection = new wamp.Connection({ url: 'wss://api.socketApp.io/', realm: 'ziggsRealm', authmethods: ['jwt'] }); connection.onopen = (session, detalis) => { session.subscribe('Channel', (data)=>console.log(data)); console.log(session) }; connection.open(); wamp.debugOn(); wamp.WAMP_STATUS; wamp.STATUS;
I was using autobahn in ReactJS and it works perfectly but unfortunatly, it doesn't support react native
In backend server i'm using SSL it's not a self-signed certificate and ReactPHP router
Same:
https://github.com/webee/wamp.js/issues/6#issuecomment-405050311
Hi there!
I'm trying to make a socket connection in react native but I'm getting 2 errors and the server says it successfully connected.
my code
I was using autobahn in ReactJS and it works perfectly but unfortunatly, it doesn't support react native
In backend server i'm using SSL it's not a self-signed certificate and ReactPHP router