diff options
author | Linus Groh <mail@linusgroh.de> | 2022-02-18 18:14:22 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-18 19:34:08 +0000 |
commit | 3e2dd5455b7cf05def03e0f2cba57f0db535c6c1 (patch) | |
tree | 23c8c62ca7de7b03f0c9e6bf28a94e7b61fe4b66 /Userland/Libraries/LibWeb | |
parent | fb1dca2c4bcb75efec0bb40246d6fd2ccc814dd8 (diff) | |
download | serenity-3e2dd5455b7cf05def03e0f2cba57f0db535c6c1.zip |
LibWeb: Use more relevant WebSocket spec links
Having almost everything point to "3. The WebSocket interface" is kind
of pointless.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp b/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp index 854962fcbe..ec1e89a349 100644 --- a/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp +++ b/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp @@ -52,7 +52,7 @@ RefPtr<Protocol::WebSocket> WebSocketClientManager::connect(const AK::URL& url) return m_websocket_client->connect(url); } -// https://websockets.spec.whatwg.org/#the-websocket-interface +// https://websockets.spec.whatwg.org/#dom-websocket-websocket DOM::ExceptionOr<NonnullRefPtr<WebSocket>> WebSocket::create_with_global_object(Bindings::WindowObject& window, const String& url) { AK::URL url_record(url); @@ -103,7 +103,7 @@ WebSocket::~WebSocket() { } -// https://websockets.spec.whatwg.org/#the-websocket-interface +// https://websockets.spec.whatwg.org/#dom-websocket-readystate WebSocket::ReadyState WebSocket::ready_state() const { if (!m_websocket) @@ -122,7 +122,7 @@ WebSocket::ReadyState WebSocket::ready_state() const return WebSocket::ReadyState::Closed; } -// https://websockets.spec.whatwg.org/#the-websocket-interface +// https://websockets.spec.whatwg.org/#dom-websocket-extensions String WebSocket::extensions() const { if (!m_websocket) @@ -132,7 +132,7 @@ String WebSocket::extensions() const return String::empty(); } -// https://websockets.spec.whatwg.org/#the-websocket-interface +// https://websockets.spec.whatwg.org/#dom-websocket-protocol String WebSocket::protocol() const { if (!m_websocket) @@ -142,7 +142,7 @@ String WebSocket::protocol() const return String::empty(); } -// https://websockets.spec.whatwg.org/#the-websocket-interface +// https://websockets.spec.whatwg.org/#dom-websocket-close DOM::ExceptionOr<void> WebSocket::close(u16 code, const String& reason) { // HACK : we should have an Optional<u16> @@ -162,7 +162,7 @@ DOM::ExceptionOr<void> WebSocket::close(u16 code, const String& reason) return {}; } -// https://websockets.spec.whatwg.org/#the-websocket-interface +// https://websockets.spec.whatwg.org/#dom-websocket-send DOM::ExceptionOr<void> WebSocket::send(const String& data) { auto state = ready_state(); |