What's the ES6 style syntax for import binding? For example, socket.io requires an http server to be bound to. Here's an example in ES5 syntax:
var app = express()
var server = http.createServer(app)
var io = require('socket-io')(server) // Need ES6 syntax for this line
How would I achieve the same thing using ES6 syntax? I've tried:
import io from 'socket-io'(server)
import io(server) from 'socket-io'
All of which throw errors.