const io = require('socket.io-client'); // or with import syntax import io from 'socket.io-client';