Closed Usman235 closed 5 years ago
Does your backend support jsonp? You configured it to only use jsonp, so your backend has to support it.
As well: Did you whitelist the IP in cordova? An obvious thing, but some people actually forget about this.
@sateffen thanks for response.
Same code is working fine on Device
when i run on Ripple Emulator
its not working.
I removed the { jsonp: true }
option in connection.start()
and mine connected.
In ionic2 in visual studio 2015 . I'm using the following code .
Import:
import { hubConnection } from 'signalr-no-jquery';
Code:
Every time it goes in fail and write console 'Could not connect'. Any suggestion what i'm doing wrong ?