update socket_chrome, plus some debugging code in client.ts and tcp.ts

improve chrome socket.