[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
cca40b1a31
commit
178cb321aa
|
@ -22,7 +22,9 @@ class ModifyWebsocketResponsePlugin(HttpProxyBasePlugin):
|
|||
while len(remaining) > 0:
|
||||
response = WebsocketFrame()
|
||||
remaining = response.parse(remaining)
|
||||
self.client.queue(memoryview(
|
||||
WebsocketFrame.text(b"modified websocket response")
|
||||
))
|
||||
self.client.queue(
|
||||
memoryview(
|
||||
WebsocketFrame.text(b'modified websocket response'),
|
||||
),
|
||||
)
|
||||
return memoryview(b'')
|
||||
|
|
|
@ -39,6 +39,8 @@ class WebServerPlugin(HttpWebServerBasePlugin):
|
|||
self.client.queue(HTTPS_RESPONSE)
|
||||
|
||||
def on_websocket_message(self, frame: WebsocketFrame) -> None:
|
||||
self.client.queue(memoryview(
|
||||
WebsocketFrame.text(b"Websocket route response"),
|
||||
))
|
||||
self.client.queue(
|
||||
memoryview(
|
||||
WebsocketFrame.text(b'Websocket route response'),
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue