Update server.js

added player connection internals