chat server example using event machine