aboutsummaryrefslogtreecommitdiff
path: root/src/http/websocket_http_client.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-07-05 12:45:20 -0700
committerGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-07-05 12:45:20 -0700
commitf61d9ef4761444d0550aea90b2656727d41ce1fa (patch)
tree0738200d54b94a626ca257c40978a020f3eef786 /src/http/websocket_http_client.zig
parent3aaec120e7ac26b3904895d2783a08352b63201a (diff)
downloadbun-f61d9ef4761444d0550aea90b2656727d41ce1fa.tar.gz
bun-f61d9ef4761444d0550aea90b2656727d41ce1fa.tar.zst
bun-f61d9ef4761444d0550aea90b2656727d41ce1fa.zip
Update websocket_http_client.zig
Diffstat (limited to 'src/http/websocket_http_client.zig')
-rw-r--r--src/http/websocket_http_client.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/websocket_http_client.zig b/src/http/websocket_http_client.zig
index a3ae8c3ba..f495af3b7 100644
--- a/src/http/websocket_http_client.zig
+++ b/src/http/websocket_http_client.zig
@@ -148,10 +148,12 @@ const CppWebSocket = opaque {
extern fn WebSocket__incrementPendingActivity(websocket_context: *CppWebSocket) void;
extern fn WebSocket__decrementPendingActivity(websocket_context: *CppWebSocket) void;
pub fn ref(this: *CppWebSocket) void {
+ JSC.markBinding(@src());
WebSocket__incrementPendingActivity(this);
}
pub fn unref(this: *CppWebSocket) void {
+ JSC.markBinding(@src());
WebSocket__decrementPendingActivity(this);
}
};