NathanaelA / nativescript-websockets

Websockets for NativeScript
83 stars 43 forks source link

Support send callback #78

Closed dosomder closed 3 years ago

dosomder commented 4 years ago

The nodejs websocket implementation supports a callback for the send method. See https://github.com/websockets/ws/blob/master/doc/ws.md#websocketsenddata-options-callback

Would this be possible to implement?

NathanaelA commented 3 years ago

Problem is that the underlying OS (& Libraries) handles it on the phone, I don't know when the actual data is written and sent to the other side. But you can easily add your own code to the server side that when you get a message, you send a message back to the device acknowledging the message.