added socket-config
changed test client to use xhr-polling
more example on remote-addr, id and close