Using ruby-socket.io-client-simple, we cannot define a acknowledge function callback.
If the definition for emit could change to:
def emit(event_name, *data, &block)
...
Ideally, you could define a callback like:
socket.emit :chat, post_data do
...
end