chat form with connection, message and disconnect events