added flush event to Socket.flush
added documentation for send and `flush`, `flushComplete` events