Hi,
thanks you for your great job, i've a little issue with PubSub and Angular2, this is the problem :
i have a simple model "Response" with PubSub correctly configured.
With angular2 i coded this simple function inside OnInit of my component :
this._responsesservice.onCreate() .subscribe((data)=> { console.log(data) // just for testing });
The loopback server is running, all is fine. When i use loopback /explorer i can post new response and the onCreate method is correctly called.
But when an IOS application POST a response with the POST url, the onCreate inside Angular2 client is never called. BTW the Websocket display correct frame :
Hi, thanks you for your great job, i've a little issue with PubSub and Angular2, this is the problem : i have a simple model "Response" with PubSub correctly configured.
With angular2 i coded this simple function inside OnInit of my component :
this._responsesservice.onCreate() .subscribe((data)=> { console.log(data) // just for testing });
The loopback server is running, all is fine. When i use loopback /explorer i can post new response and the onCreate method is correctly called.
But when an IOS application POST a response with the POST url, the onCreate inside Angular2 client is never called. BTW the Websocket display correct frame :
But this trame is never catched by the onCreate method :(
Please can you give me an advice ?
PS : sorry for my bad english it's not my native tongue
FOUND ! : i found my mistake, the URL inside the IOS app was "/api/Responses/" instead of "/api/Responses" .... :)