added example of emitting an entrance and exit message to localhost