Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to serve(..) via connect_tcp(..) call #2

Open
adamocarolli opened this issue Nov 27, 2024 · 1 comment
Open

Connecting to serve(..) via connect_tcp(..) call #2

adamocarolli opened this issue Nov 27, 2024 · 1 comment

Comments

@adamocarolli
Copy link

adamocarolli commented Nov 27, 2024

Hi,

How do you connect to serve via connect_tcp call? ie. I'd like to run the following client that connects to this repos serve.py example and logs some data that is then automatically viewable from the vite app:

rr.init("test", spawn=False)
rr.connect_tcp(addr="0.0.0.0:4321")

positions = np.zeros((10, 3))
positions[:,0] = np.linspace(-10,10,10)

colors = np.zeros((10,3), dtype=np.uint8)
colors[:,0] = np.linspace(0,255,10)

rr.log(
    "my_points",
    rr.Points3D(positions, colors=colors, radii=0.5)
)
@jprochazk
Copy link
Member

jprochazk commented Dec 4, 2024

Hi, I'm not sure I fully understand the request here. The serve.py script starts a WebSocket server to which a web viewer can connect. TCP cannot be used directly in browsers, everything must go through HTTP, WS, or more recently QUIC. We currently don't support SDKs connecting to each other. If you want to log data to the same web viewer from multiple different SDKs, you can give the web viewer multiple ws:// addresses to connect to. See our operating modes for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants