Coder Social home page Coder Social logo

Comments (11)

davidindra avatar davidindra commented on July 21, 2024

Hello,
thanks very much for your feedback. I'll take a look on it in a few hours.

from 10kgames.

davidindra avatar davidindra commented on July 21, 2024

I see two problems:

  • WebSocket server isn't running as described in Readme
  • hosting prefer HTTPS; our WS server can't do secure WebSockets

First problem can be solved easily - just launch the server as described. The second problem is a bit more complicated, I see two possible solutions:

  • disable HTTPS on the hosting
  • add HTTPS -> HTTP redirect into our code

What do you think?

Of course both these solutions aren't clear (clear would be modifying WS server to be able to serve WSS too), but they are the easiest :)

BTW, you can check the project working here.

Looking forward for your reply :)

from 10kgames.

aarongustafson avatar aarongustafson commented on July 21, 2024

I can use the non-SSL URL if you want.

from 10kgames.

davidindra avatar davidindra commented on July 21, 2024

Yes, that would be great :)

from 10kgames.

aarongustafson avatar aarongustafson commented on July 21, 2024

http://10kgames-10kapart2016.azurewebsites.net/?js

from 10kgames.

davidindra avatar davidindra commented on July 21, 2024

I still do not see PHP WebSocket server running (port 9000 is dead). You can launch it by running php server/index.php in project's root directory on the server.

from 10kgames.

aarongustafson avatar aarongustafson commented on July 21, 2024

Looks like you will need a web.config to set up the WebSockets server.

from 10kgames.

davidindra avatar davidindra commented on July 21, 2024

You are hosting the project on Windows Server & IIS, am I right? Is it possible to launch it in Linux environment?

If Linux environment can't be used - I think on Windows you can execute command php the same way on Linux, or not? (Of course if it is in system PATH variable). If it is possible, then you can launch the command php path_to_project/server/index.php the same way as on Linux, I think.

from 10kgames.

aarongustafson avatar aarongustafson commented on July 21, 2024

I think the web.config just needs a rule pointing to the file. https://www.iis.net/configreference/system.webserver/websocket

from 10kgames.

davidindra avatar davidindra commented on July 21, 2024

I've tried to add it (using the information from your link), but I am still very unsure if this is gonna to work.

from 10kgames.

aarongustafson avatar aarongustafson commented on July 21, 2024

@molant suggested you check out this StackOverflow thread: http://stackoverflow.com/questions/27299206/php-websockets-extension-on-microsoft-azure-website

He also suggested there may also be an issue not running it all over SSL.

from 10kgames.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.