mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
11 lines
576 B
Zig
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");
|