mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-23 16:19:49 -05:00
update on_close for websocket-client update
This commit is contained in:
parent
f06e0348ea
commit
704db5b957
@ -1,7 +1,7 @@
|
||||
"""
|
||||
brozzler/browser.py - manages the browsers for brozzler
|
||||
|
||||
Copyright (C) 2014-2023 Internet Archive
|
||||
Copyright (C) 2014-2024 Internet Archive
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -33,6 +33,7 @@ from brozzler.chrome import Chrome
|
||||
import socket
|
||||
import urlcanon
|
||||
|
||||
websocket.enableTrace(True)
|
||||
|
||||
class BrowsingException(Exception):
|
||||
pass
|
||||
@ -173,7 +174,7 @@ class WebsockReceiverThread(threading.Thread):
|
||||
def pop_result(self, msg_id):
|
||||
return self._result_messages.pop(msg_id)
|
||||
|
||||
def _on_close(self, websock):
|
||||
def _on_close(self, websock, close_status_code, close_msg):
|
||||
pass
|
||||
# self.logger.info('GOODBYE GOODBYE WEBSOCKET')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user