theturtle32 / WebSocket-Node

A WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to know if connection.sendUTF succeded?

pSnehanshu opened this issue · comments

I want to know if sending messages using connection.sendUTF succeeded or not. By looking at the source code, i can see that sendUTF accepts a second parameter cb. I expect cb to receive an error argument as the first argument if the sending failed. But by testing, it didn't react like that.
Is there any way to know if sending was successful?

This is not a WebSocket issue. Please read how the protocol works in the corresponding specification.

comnection.sendUTF is a function of this library. I just want to be notified when a message is sent or failed.