react-native-signalr
react-native-signalr copied to clipboard
Using transport webSockets gives error
Using the following code:
this.connection
.start({
transport: 'webSockets',
data: { name: 'corehub' },
})
.done(() => {
this.isConnected = true;
console.log('is connected');
})
.fail((err) => {
this.isConnected = false;
console.log('error', err);
});
I get the following error:
No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.