diff --git a/README.md b/README.md index 424bc16..15a9f1e 100644 --- a/README.md +++ b/README.md @@ -311,7 +311,7 @@ This project is licensed under the GNU AGPL v3. ### Copyright Notice: ``` ading2210/libcurl.js - A port of libcurl to WASM for use in the browser. -Copyright (C) 2023 ading2210 +Copyright (C) 2024 ading2210 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by diff --git a/client/javascript/main.js b/client/javascript/main.js index 9ca619f..a6f93c9 100644 --- a/client/javascript/main.js +++ b/client/javascript/main.js @@ -1,6 +1,6 @@ /* ading2210/libcurl.js - A port of libcurl to WASM for the browser. -Copyright (C) 2023 ading2210 +Copyright (C) 2024 ading2210 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by diff --git a/client/javascript/session.js b/client/javascript/session.js index 91981b6..fdb2a69 100644 --- a/client/javascript/session.js +++ b/client/javascript/session.js @@ -123,7 +123,7 @@ class CurlSession { } _session_cleanup(this.session_ptr); this.session_ptr = null; - ws_events.removeEventListener(this.ws_event_listener); + ws_events.removeEventListener("message", this.ws_event_listener); Module.removeFunction(this.end_callback_ptr); Module.removeFunction(this.headers_callback_ptr); Module.removeFunction(this.data_callback_ptr);