Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Fortune Server + JavaScript Client
Qt 6.11 is out! See what's new in the release blog

Fortune Server + JavaScript Client

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 651 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stephan
    wrote on last edited by
    #1

    Hi,
    im trying to connect to the Fortune Server via a Html/Javascript Page. I start the Fortune Server and try to connect with this page:
    http://jsfiddle.net/gr0bhrqr/

    Of cours I changed before this line of code:
    websocket = new WebSocket("ws://yourDomainNameHere.org/");
    to
    websocket = new WebSocket("ws://192.168.2.154:50745/");

    All I get is a error with error Code 1006. Why?

    If I use the same values with the Fortune Client everything works finde.

    Regards,
    Stephan

    MehmetM 1 Reply Last reply
    0
    • S Stephan

      Hi,
      im trying to connect to the Fortune Server via a Html/Javascript Page. I start the Fortune Server and try to connect with this page:
      http://jsfiddle.net/gr0bhrqr/

      Of cours I changed before this line of code:
      websocket = new WebSocket("ws://yourDomainNameHere.org/");
      to
      websocket = new WebSocket("ws://192.168.2.154:50745/");

      All I get is a error with error Code 1006. Why?

      If I use the same values with the Fortune Client everything works finde.

      Regards,
      Stephan

      MehmetM Offline
      MehmetM Offline
      Mehmet
      wrote on last edited by
      #2

      maybe Websocket is not implemented in QML Javascript?!

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved