I am using aws-amplify to get data from socket, here is my code, I got an error ---> Actually its working for below iOS 12 but not working for iOS 12.1.4
Possible Unhandled Promise Rejection (id: 1): Object { "errorCode": 7, "errorMessage": "AMQJS0007E Socket error:undefined.", "invocationContext": undefined, } Please help me out Thanks in advance
import { PubSub } from 'aws-amplify';
import { AWSIoTProvider } from 'aws-amplify/lib/PubSub/Providers';
this.subscription = new AWSIoTProvider(this.iotConfig).subscribe(topic).subscribe({
next: data => this._receiveGameState(data),
error: error => console.log("Error: " + error),
close: () => console.log('Done'),
});