Files
bun.sh/src/http/websocket_http_client.zig
pfg 83760fc446 Sort imports in all files (#21119)
Co-authored-by: taylor.fish <contact@taylor.fish>
2025-07-21 13:26:47 -07:00

11 lines
576 B
Zig

// Before the websocket handshaking step is completed, we use this:
pub const WebSocketHTTPClient = upgrade_client.NewHTTPUpgradeClient(false);
pub const WebSocketHTTPSClient = upgrade_client.NewHTTPUpgradeClient(true);
// After the websocket handshaking step is completed, we use this:
pub const WebSocketClient = websocket_client.NewWebSocketClient(false);
pub const WebSocketClientTLS = websocket_client.NewWebSocketClient(true);
const upgrade_client = @import("./websocket_client/WebSocketUpgradeClient.zig");
const websocket_client = @import("./websocket_client.zig");