You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know what to write in here: app.use(express.static(HERE));
Can anyone help?
My Code until now:
**
var express = require("express");
var app = express();
var port = 3700;
var io = require('socket.io').listen(app.listen(port));
app.get("/", function(req, res){
res.send("It works!");
});
app.listen(port);
app.use(express.static(__dirname + exports.settings.appcurl));
console.log("Listening on port " + port);**
The text was updated successfully, but these errors were encountered:
How do i use socket.io in coder?
I don't know what to write in here: app.use(express.static(HERE));
Can anyone help?
My Code until now:
**
var express = require("express");
var app = express();
var port = 3700;
var io = require('socket.io').listen(app.listen(port));
app.get("/", function(req, res){
res.send("It works!");
});
app.listen(port);
app.use(express.static(__dirname + exports.settings.appcurl));
console.log("Listening on port " + port);**
The text was updated successfully, but these errors were encountered: