Skip to content

Commit

Permalink
Fix Can't instantiate abstract class ProxyEnabledWebSocketClientHandler
Browse files Browse the repository at this point in the history
with abstract methods handle_exception
  • Loading branch information
trana authored and trana committed Jan 3, 2024
1 parent 3e985f6 commit f9916f9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fastapi_websocket_rpc/simplewebsocket.py
Expand Up @@ -26,10 +26,6 @@ def recv(self):
def close(self, code: int = 1000):
pass

@abstractmethod
def handle_exception(self, exception: Exception):
pass


class JsonSerializingWebSocket(SimpleWebSocket):
def __init__(self, websocket: SimpleWebSocket):
Expand All @@ -56,7 +52,3 @@ async def recv(self):
async def close(self, code: int = 1000):
await self._websocket.close(code)

async def handle_exception(self, exception: Exception):
await self._websocket.handle_exception(exception)


0 comments on commit f9916f9

Please sign in to comment.