SocketException: Reading from a closed socket

How to handle this type of error? I’m using flutter sendbird package.