-
Notifications
You must be signed in to change notification settings - Fork 184
Refactor stream package to enable common method helpers for other streaming api classes. #211
Refactor stream package to enable common method helpers for other streaming api classes. #211
Conversation
/assign @yliaog |
…eaming api classes.
7ea9914
to
fd62214
Compare
stream/ws_client.py
Outdated
return api_client.config | ||
|
||
|
||
def websocket_call(api_client, _method, url, **kwargs): | ||
"""An internal function to be called in api-client when a websocket | ||
connection is required. args and kwargs are the parameters of |
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.
the comment needs to be updated
…d use functools.partial to orchestrate calling the websocket request hanlder.
6d2cc42
to
a00ed7f
Compare
Codecov Report
@@ Coverage Diff @@
## master #211 +/- ##
=======================================
Coverage 92.37% 92.37%
=======================================
Files 13 13
Lines 1613 1613
=======================================
Hits 1490 1490
Misses 123 123 Continue to review full report at Codecov.
|
thanks for the pr |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iciclespider, yliaog The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This puts in place the methods needed by this port forwarding implementation: #210
Also, simplify the patten used to monkey patch the
ApiClient.request
method.