Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Oct 2018
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Setting up Node.js Websockets in Github

    I want to set up the Node.js ws package in Github, but am struggling to do so. I have a few problems:
    1. I'm not sure what link to use for the server -> client connection.
    2. Github pages isn't opening the way I want it to.
    3. I'm just beginning with the ws module.
    Can anyone help? Here's the link: https://github.com/Reader8765/Web-Storage.

  2. #2
    New to the CF scene
    Join Date
    Oct 2018
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    UPDATE: Apparently, Github pages doesn't automatically update the website each time you publish... I'll look into that.

  3. #3
    New to the CF scene
    Join Date
    Oct 2018
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    UPDATE: It does update.

  4. #4
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Location
    Here
    Posts
    3,845
    Thanks
    58
    Thanked 690 Times in 685 Posts
    I can't even find your Github Pages page...

    I would have thought it was at https://Reader8765.github.io but nope...

  5. #5
    New to the CF scene
    Join Date
    Oct 2018
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

  6. #6
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Location
    Here
    Posts
    3,845
    Thanks
    58
    Thanked 690 Times in 685 Posts
    no it's not - it's here:
    https://reader8765.github.io/Web-Storage/interface.html

    and if you read the error console it says:
    Mixed Content: The page at 'https://reader8765.github.io/Web-Storage/interface.html' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://reader8765.github.io/Web-Storage:40510'. This request has been blocked; this endpoint must be available over WSS.

  7. Users who have thanked xelawho for this post:

    Reader8765 (Oct 17th, 2018)

  8. #7
    New to the CF scene
    Join Date
    Oct 2018
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks! Now I need to get the connection to work. Since I have updated the link to wss://..., it doesn't throw the error. More specifically, I need a link I can make a connection over. Do you know how to set this up?


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •