aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ryan Russell <git@ryanrussell.org> 2022-07-08 18:04:32 -0500
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-07-09 18:34:46 -0700
commit0acf8a66181624e11ec83a0e4031eb8c2facc9d2 (patch)
treec53c371abe270b546d7d24b429b3c2791ea4a075
parent547ac721faa5cc8f7309e31059bbc8bd6306973e (diff)
downloadbun-0acf8a66181624e11ec83a0e4031eb8c2facc9d2.tar.gz
bun-0acf8a66181624e11ec83a0e4031eb8c2facc9d2.tar.zst
bun-0acf8a66181624e11ec83a0e4031eb8c2facc9d2.zip
refactor(websockets): Rename `connectedWebSocketContext()`
Signed-off-by: Ryan Russell <git@ryanrussell.org>
-rw-r--r--src/bun.js/bindings/ScriptExecutionContext.h2
-rw-r--r--src/bun.js/bindings/webcore/WebSocket.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bun.js/bindings/ScriptExecutionContext.h b/src/bun.js/bindings/ScriptExecutionContext.h
index 227c57e6a..ab86b6816 100644
--- a/src/bun.js/bindings/ScriptExecutionContext.h
+++ b/src/bun.js/bindings/ScriptExecutionContext.h
@@ -145,7 +145,7 @@ private:
public:
template<bool isSSL, bool isServer>
- us_socket_context_t* connnectedWebSocketContext()
+ us_socket_context_t* connectedWebSocketContext()
{
if constexpr (isSSL) {
if (!m_connected_ssl_client_websockets_ctx) {
diff --git a/src/bun.js/bindings/webcore/WebSocket.cpp b/src/bun.js/bindings/webcore/WebSocket.cpp
index 763668056..a21560b2c 100644
--- a/src/bun.js/bindings/webcore/WebSocket.cpp
+++ b/src/bun.js/bindings/webcore/WebSocket.cpp
@@ -909,11 +909,11 @@ void WebSocket::didConnect(us_socket_t* socket, char* bufferedData, size_t buffe
{
this->m_upgradeClient = nullptr;
if (m_isSecure) {
- us_socket_context_t* ctx = (us_socket_context_t*)this->scriptExecutionContext()->connnectedWebSocketContext<true, false>();
+ us_socket_context_t* ctx = (us_socket_context_t*)this->scriptExecutionContext()->connectedWebSocketContext<true, false>();
this->m_connectedWebSocket.clientSSL = Bun__WebSocketClientTLS__init(this, socket, ctx, this->scriptExecutionContext()->jsGlobalObject());
this->m_connectedWebSocketKind = ConnectedWebSocketKind::ClientSSL;
} else {
- us_socket_context_t* ctx = (us_socket_context_t*)this->scriptExecutionContext()->connnectedWebSocketContext<false, false>();
+ us_socket_context_t* ctx = (us_socket_context_t*)this->scriptExecutionContext()->connectedWebSocketContext<false, false>();
this->m_connectedWebSocket.client = Bun__WebSocketClient__init(this, socket, ctx, this->scriptExecutionContext()->jsGlobalObject());
this->m_connectedWebSocketKind = ConnectedWebSocketKind::Client;
}