This usually happens if you try to send a message right after connecting to a room because the Data Channel is not yet ready.
At the moment our iOS SDK does not have a way to check if the data channel is ready yet. We suggest implementing a short wait before sending any messages after connecting to the room.
You may want to try our iOS Sample app on Github to see how we implement it: https://github.com/Temasys/