Fix recv of websocket wrapper
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
This commit is contained in:
parent
c39f39c989
commit
fda92b723b
|
@ -13,7 +13,7 @@ class WebSocketWrapper():
|
||||||
try:
|
try:
|
||||||
text = await self._websocket.receive_text()
|
text = await self._websocket.receive_text()
|
||||||
logger.info("Message received: {}", text)
|
logger.info("Message received: {}", text)
|
||||||
return await self._websocket.receive_text()
|
return text
|
||||||
except WebSocketDisconnect as e:
|
except WebSocketDisconnect as e:
|
||||||
raise ConnectionClosed(e.code, 'WebSocketWrapper')
|
raise ConnectionClosed(e.code, 'WebSocketWrapper')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue