aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ScriptExecutionContext.cpp
diff options
context:
space:
mode:
authorGravatar cirospaciari <ciro.spaciari@gmail.com> 2023-04-11 12:46:30 -0300
committerGravatar Ciro Spaciari <ciro.spaciari@gmail.com> 2023-05-13 06:26:44 -0300
commite50ce69a3b10a50cb3eb6e3876c8bfb849cb078e (patch)
tree1a5b76508b7f1cf4833feb3831281381d91e8747 /src/bun.js/bindings/ScriptExecutionContext.cpp
parent7f25aa9e0864e95aad72ee85d475a03aee68bfb4 (diff)
downloadbun-ciro/ws-fetch-proper-handshake.tar.gz
bun-ciro/ws-fetch-proper-handshake.tar.zst
bun-ciro/ws-fetch-proper-handshake.zip
attempt to adapt the new handshake properlyciro/ws-fetch-proper-handshake
Diffstat (limited to 'src/bun.js/bindings/ScriptExecutionContext.cpp')
-rw-r--r--src/bun.js/bindings/ScriptExecutionContext.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bun.js/bindings/ScriptExecutionContext.cpp b/src/bun.js/bindings/ScriptExecutionContext.cpp
index 151c66495..cd22f9e1e 100644
--- a/src/bun.js/bindings/ScriptExecutionContext.cpp
+++ b/src/bun.js/bindings/ScriptExecutionContext.cpp
@@ -38,9 +38,9 @@ us_socket_context_t* ScriptExecutionContext::webSocketContextSSL()
{
if (!m_ssl_client_websockets_ctx) {
us_loop_t* loop = (us_loop_t*)uws_get_loop();
- us_socket_context_options_t opts;
- memset(&opts, 0, sizeof(us_socket_context_options_t));
- this->m_ssl_client_websockets_ctx = us_create_socket_context(1, loop, sizeof(size_t), opts);
+ us_bun_socket_context_options_t opts;
+ memset(&opts, 0, sizeof(us_bun_socket_context_options_t));
+ this->m_ssl_client_websockets_ctx = us_create_bun_socket_context(1, loop, sizeof(size_t), opts);
void** ptr = reinterpret_cast<void**>(us_socket_context_ext(1, m_ssl_client_websockets_ctx));
*ptr = this;
registerHTTPContextForWebSocket<true, false>(this, m_ssl_client_websockets_ctx, loop);
@@ -65,9 +65,9 @@ us_socket_context_t* ScriptExecutionContext::webSocketContextNoSSL()
{
if (!m_client_websockets_ctx) {
us_loop_t* loop = (us_loop_t*)uws_get_loop();
- us_socket_context_options_t opts;
- memset(&opts, 0, sizeof(us_socket_context_options_t));
- this->m_client_websockets_ctx = us_create_socket_context(0, loop, sizeof(size_t), opts);
+ us_bun_socket_context_options_t opts;
+ memset(&opts, 0, sizeof(us_bun_socket_context_options_t));
+ this->m_client_websockets_ctx = us_create_bun_socket_context(0, loop, sizeof(size_t), opts);
void** ptr = reinterpret_cast<void**>(us_socket_context_ext(0, m_client_websockets_ctx));
*ptr = this;
registerHTTPContextForWebSocket<false, false>(this, m_client_websockets_ctx, loop);