minor refactorings: 'socketURL' becomes 'socketAddress', 'client1' becomes 'client'.
add test to ensure we respond to "post" events