mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 00:29:53 -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
|
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");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with 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 socket
|
||||||
import urlcanon
|
import urlcanon
|
||||||
|
|
||||||
|
websocket.enableTrace(True)
|
||||||
|
|
||||||
class BrowsingException(Exception):
|
class BrowsingException(Exception):
|
||||||
pass
|
pass
|
||||||
@ -173,7 +174,7 @@ class WebsockReceiverThread(threading.Thread):
|
|||||||
def pop_result(self, msg_id):
|
def pop_result(self, msg_id):
|
||||||
return self._result_messages.pop(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
|
pass
|
||||||
# self.logger.info('GOODBYE GOODBYE WEBSOCKET')
|
# self.logger.info('GOODBYE GOODBYE WEBSOCKET')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user