Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket.io #88

Open
Niramo opened this issue Jul 5, 2014 · 1 comment
Open

Socket.io #88

Niramo opened this issue Jul 5, 2014 · 1 comment

Comments

@Niramo
Copy link

Niramo commented Jul 5, 2014

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);**

@odensc
Copy link

odensc commented Aug 3, 2014

See #87. I put code examples of how to do it in the comments. Coder has it's own kind of "wrapper" for socket.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants