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

WebSocket and plain HTTP using the same port #1

Open
jclgoodwin opened this issue May 27, 2014 · 1 comment
Open

WebSocket and plain HTTP using the same port #1

jclgoodwin opened this issue May 27, 2014 · 1 comment

Comments

@jclgoodwin
Copy link

However, I’m hosting the bot on Heroku. Heroku only allows each dyno to have one port open—in the case of the bot, I need it for web socket connections, and thus can’t open a second port for just plain web connections.

It should be possible to use WebSocket and plain HTTP over the same port. Although perhaps not using the ws Node module -- it's definitely possible with Socket.IO...

@voldyman
Copy link

i was able to run the websocket server and an http server on the same port, the branch is at https://github.com/voldyman/accidentalbot

still needs work though

banksJeremy referenced this issue in jeremyBanks/accidentalbot Jun 24, 2014
Merges with recent changes, updates package.json, and adds jQuery and moment
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