TypeError: null is not an object (evaluating 'this.socket.send)

Hello Team,

I am integrating cometchat pro in my another react native project. everything is working but I am getting issue after cometchat logged in event as given below:

Please assist.

Thanks,
Shaheen

Hello @shaheen,

Can you please let us know which version of the SDK are you using? Also, please let us know if you are using hot reload on the development server? If yes, please disable hot reload and run the app. Also, can you please. let us know. if you face this exact issue on production build?

@mayur.bhandari I am facing this issue in my production build. App crashing due to this issue at random points. When I check my crash log it gives me this error. While I do not this issue while development. Only in release build.

Hello @CircleIt,

Please share your crash log so that we can look into it.

Hello @mayur.bhandari,
Thanks for the quick reply, The SDK version is “2.0.7”, and I am not using hot reload on the development server, Yes The app getting crash in production build due to this error.
Thanks,
Shaheen

Hello @shaheen,

Can you please share your crash log so that we can look into it.

Hello @shaheen,

Closing this thread due to inactivity. I would advise you to update to the latest SDK and feel free to reopen if you still face this issue.

Warm Regards,

CometChat Pro
Mayur Bhandari