Page MenuHomePhabricator

[Tunnelbroker] Create websocket server
ClosedPublic

Authored by jon on Apr 11 2023, 4:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 16, 4:11 AM
Unknown Object (File)
Wed, Jun 12, 1:19 AM
Unknown Object (File)
Tue, Jun 11, 8:24 PM
Unknown Object (File)
Mon, Jun 3, 3:19 PM
Unknown Object (File)
Sun, May 26, 11:48 AM
Unknown Object (File)
Sun, May 26, 1:22 AM
Unknown Object (File)
Sun, May 26, 1:22 AM
Unknown Object (File)
Sun, May 26, 1:22 AM
Subscribers

Details

Summary

Keyservers and in the future, clients, will need to
open a websocket to connect with tunnelbroker. This adds
the initial websocket server and enables logging in rust code.

Depends on D7391

Test Plan
cd services/tunnelbroker
cargo run # should emit log saying that it's bound to port

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

services/tunnelbroker/src/main.rs
16 ↗(On Diff #25021)

After a quick search through the code base, couldn't find any instance of clients using a tunnelbroker protobuf client to attempt to contact it, so i replaced it.

services/tunnelbroker/src/websockets/mod.rs
7 ↗(On Diff #25021)

to be consistent

added @ashoat since this is a new dependency.

New dependency looks good!! 1.2k stars on GitHub, updated in the last month, and MIT-licensed

Resigning to let the other reviewers take a look

This revision is now accepted and ready to land.Apr 12 2023, 12:07 PM
This revision was automatically updated to reflect the committed changes.