Skip to content

Commit

Permalink
Fix for IWebSocketClient::GetUrl returning local reference to string
Browse files Browse the repository at this point in the history
  • Loading branch information
kin4stat committed Nov 22, 2024
1 parent 6d6aeeb commit edb57f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/bindings/WebSocketClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,6 @@ V8Class v8WebSocketClient = V8Class("WebSocketClient",
V8Helpers::SetAccessor<IWebSocketClient, bool, &IWebSocketClient::IsPerMessageDeflateEnabled, &IWebSocketClient::SetPerMessageDeflateEnabled>(
isolate, tpl, "perMessageDeflate");
V8Helpers::SetAccessor<IWebSocketClient, uint16_t, &IWebSocketClient::GetPingInterval, &IWebSocketClient::SetPingInterval>(isolate, tpl, "pingInterval");
V8Helpers::SetAccessor<IWebSocketClient, const std::string&, &IWebSocketClient::GetUrl, &IWebSocketClient::SetUrl>(isolate, tpl, "url");
V8Helpers::SetAccessor<IWebSocketClient, std::string, &IWebSocketClient::GetUrl, &IWebSocketClient::SetUrl>(isolate, tpl, "url");
V8Helpers::SetAccessor<IWebSocketClient, uint8_t, &IWebSocketClient::GetReadyState>(isolate, tpl, "readyState");
});

0 comments on commit edb57f0

Please sign in to comment.