with socket client in js and server in C