feat(main.js): configure the socket