Merge pull request #320 from lightpanda-io/http_json_version

websockets: add addr server info in Stream
This commit is contained in:
Francis Bouvier
2024-12-04 15:56:06 +01:00
committed by GitHub
3 changed files with 9 additions and 2 deletions

View File

@@ -264,7 +264,11 @@ pub fn main() !void {
}
// start stream server in separate thread
var stream = handler.Stream{ .addr = addr };
var stream = handler.Stream{
.ws_host = opts.host,
.ws_port = opts.port,
.addr = addr,
};
const cdp_thread = try std.Thread.spawn(
.{ .allocator = alloc },
server.handle,