Skip to content

WS port number is taken from window.location, should be passed by server #104

Open

Description

@joostdevries
  • App is running on hostname.dev
  • Statics normally run on statics-hostname.dev
  • Changed that to statics-hostname.dev:2080 for trace.gl
  • Trace.gl still tries to connect to statics-hostname.dev:80 because the portnumber is set through window.location.port (3861)

Activity

  1. joostdevries commented on Aug 30, 2013

    @joostdevries
    Author

    I solved this the dirty way by changing

    var u = 'ws://'+window.location.hostname +':'+window.location.port+''+url

    to

    var wsport = window.location.port ? 2000: 2080;
    var u = 'ws://'+window.location.hostname +':'+wsport+''+url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions