worked on ws for server.js