Page MenuHomePhabricator

[Tunnelbroker] Create websocket server
ClosedPublic

Authored by jon on Apr 11 2023, 4:26 PM.
Tags
None
Referenced Files
F3276455: D7392.diff
Sat, Nov 16, 7:29 AM
Unknown Object (File)
Tue, Nov 5, 4:08 AM
Unknown Object (File)
Tue, Nov 5, 4:08 AM
Unknown Object (File)
Tue, Nov 5, 4:08 AM
Unknown Object (File)
Tue, Nov 5, 4:08 AM
Unknown Object (File)
Mon, Oct 28, 2:11 PM
Unknown Object (File)
Mon, Oct 28, 2:11 PM
Unknown Object (File)
Mon, Oct 28, 2:10 PM
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.