Skip to content

"--ws-endpoint" take no effect #127

Open

Description

@yungxiaomcc

High-level description

"--ws-endpoint", the startup option, take no effect.

Steps to reproduce

  • download ParaView-5.11.1-osmesa-MPI-Linux-Python3.9-x86_64.tar.gz package
  • untar package
  • start paraview visualizer
./ParaViewPack/bin/pvpython -m paraview.apps.visualizer  --host 192.10.10.10--port 9087 --data ./vtudir  --ws-endpoint foo/bar/ws
  • open url
  • press f12, and change to network tab, the url of websocket connection is ws://192.10.10.10:9087/ws

Detailed behavior

Expected behavior

the websocket url should be ws://192.10.10.10:9087/foo/bar/ws

Environment

  • Visualizer: ParaView-5.11.1-osmesa-MPI
  • OS:ubuntu
  • Browser: Chrome 89.0.4389.128

Activity

  1. jourdain commented on May 11, 2023

    @jourdain
    Collaborator

    This was most-likely an oversight when migrating wslink to v1. But in practice changing that endpoint should not be required.
    For real-world deployment, a pvw process tends to be ran in an internal network with a proxy that rewrite all those url to be session based.

  2. yungxiaomcc commented on May 12, 2023

    @yungxiaomcc
    Author

    I use nginx to forward external request to internal visualizer process with prefix like "proxr/abc/", when opened the url (should be "http://{{host}}:{{port}}/proxr/abc/index.html"),but the ws connection url is wrong which is "ws://{{host}}:{{port}}/ws". Maybe this is cause of front-end building option of "publicPath" (not sure),so i try to change "ws-endpoint" to make it work. Plz help me out this issue.

  3. yungxiaomcc commented on May 12, 2023

    @yungxiaomcc
    Author

    I use nginx to forward external request to internal visualizer process with prefix like "proxr/abc/", when opened the url (should be "http://{{host}}:{{port}}/proxr/abc/index.html"),but the ws connection url is wrong which is "ws://{{host}}:{{port}}/ws". Maybe this is cause of front-end building option of "publicPath" (not sure),so i try to change "ws-endpoint" to make it work. Plz help me out this issue.

    I use paraview.apps.trame as running module, it works well in my app.

  4. jourdain commented on May 12, 2023

    @jourdain
    Collaborator

    So you don't need to change it via ws-endpoint. Just add that info in the URL like http://{{host}}:{{port}}/proxr/abc/index.html?sessionURL=ws://......

    The way we do the routing with Apache and our launcher is by doing that and having the launcher properly providing that sessionURL internally with the session information.

    Anyway, it seems that you just need to configure your launcher...

  5. yungxiaomcc commented on May 12, 2023

    @yungxiaomcc
    Author

    So you don't need to change it via ws-endpoint. Just add that info in the URL like http://{{host}}:{{port}}/proxr/abc/index.html?sessionURL=ws://......

    The way we do the routing with Apache and our launcher is by doing that and having the launcher properly providing that sessionURL internally with the session information.

    Anyway, it seems that you just need to configure your launcher...

    I have updated my configration as you siad, and it worked. Thanks!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions