react-native-signalr icon indicating copy to clipboard operation
react-native-signalr copied to clipboard

Using transport webSockets gives error

Open foyarash opened this issue 7 years ago • 0 comments

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.

foyarash avatar Dec 29 '17 18:12 foyarash