Update headers and setHealth to only send protocol events if server

Signed-off-by: Jack Huey kitskub@gmail.com