koajs / koa.io

[MAINTAINERS WANTED] Realtime web framework combine koa and socket.io.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: HTTPS?

clintwood opened this issue · comments

It look like only HTTP is supported no HTTPS server or am I from another planet?
Edit: BTW Like what you have here!

Also, wondering if I did this https.createServer(options, app.callback()).listen(3000); whether that would prevent the socket being attached?

var server = https.createServer(options, app.callback());
app.io.attach(server);
server.listen(3000);

didn't try this module with https, if it can't work, PR's welcome! :D

Thanks will give it a try!

@dead-horse, it does in fact work with https as you have it above, however, I haven't done extensive tests!

Nice!