Finally got websockets to work.  Apparently the protocol expects 2 blank lines at the end of the handshake.  Why?!