-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added websocket client handler, and websocket-client module #32
Added websocket client handler, and websocket-client module #32
Conversation
Oups, I just saw that exception handling is not clean. Will look into it later. |
Hi @antoinetran , from a quick skim looks like a great direction. |
Ok:
|
@orweis I think I am done! Please give me a feedback when you can, and hopefully release a tag if possible :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @antoinetran - this is greta - kudos!
I did an initial review - and there's some good stuff to start here
Co-authored-by: Or Weis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the double logging of exceptions in connect
- Looks great to me :)
with abstract methods handle_exception
Hello! Please wait for me to do final tests. I found some minor bugs. |
Ok now I tested in my small app, both in server and client code (before I only tested on client). I fixed an error on server-side (endpoint) in WebSocketSimplifier, because it implements SimpleWebSocket too, It works fine! Normally this is it. Can you accept the test workflow here? https://github.com/permitio/fastapi_websocket_rpc/actions/runs/7400381788 There was an error because it was missing an os import (fixed). Then, I don't know what is the merge process. Do you need me to squash the history, or do you merge as-it? |
@orweis
|
Maybe try to fix the import, try relative import with . Synatx , absolute with adding the parent folder to sys path |
8080c88
to
91d8d80
Compare
|
Ok there were some issues regarding Unit Tests:
Still working on it. |
No worries, take your time. And thank you |
abstract method connect
@orweis I fixed the Unit Tests :) See https://github.com/antoinetran/fastapi_websocket_rpc/actions/runs/7409756440 , all green. Can you run https://github.com/permitio/fastapi_websocket_rpc/actions/runs/7409769095? Thanks! |
This looks good, @roekatz your final review here is requested. |
#31
Tested, seems to work fine in both websockets and websocket!
Will try to add doc later.