added socket.ts
Add Socket.(ts/js)