Skip to content

Commit

Permalink
Chore: Make release 1.0.113
Browse files Browse the repository at this point in the history
  • Loading branch information
martinroberson committed Aug 19, 2024
1 parent 74181e0 commit e5f6c7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gs_quant/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,11 @@ async def _put_async(self, path: str, payload: Optional[Union[dict, Base]] = Non
return_request_id=return_request_id)
return ret

def _connect_websocket(self, path: str, headers: Optional[dict] = None, include_version=True):
def _connect_websocket(self, path: str, headers: Optional[dict] = None, include_version=True,
domain: Optional[str] = None):
import websockets
url = 'ws{}{}{}'.format(self.domain[4:], '/' + self.api_version if include_version else '', path)
version_path = '/' + self.api_version if include_version else ''
url = f'{domain}{version_path}{path}' if domain else f'ws{self.domain[4:]}{version_path}{path}'
extra_headers = self._headers() + list((headers or {}).items())
return websockets.connect(url,
extra_headers=extra_headers,
Expand Down

0 comments on commit e5f6c7f

Please sign in to comment.