add a buffer for emitted events to only send after connection
Merge pull request #682 from kevin-roark/add/emit-buffer

add a buffer for emitted events to only send after connection