string|int got_data(string|int s)
Main receive handler. Returns a string of received application data, or 1 if a close was received, or -1 if an error occurred.
This function is intended to be called from an i/o read callback.