Skip to content

Commit

Permalink
Merge pull request #127 from livechat/API-13259/fix-websocket-client
Browse files Browse the repository at this point in the history
Api 13259/fix websocket client
  • Loading branch information
zuczkows authored Jan 23, 2024
2 parents 1e5b0d2 + 579e9f4 commit d6ecf2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
### Bugfixes
- Enabled instantiation for `CustomerRtmV36` within the 3.6 version of the Customer RTM API.
- Adjusted the return types in `get_client` method across RTM and WEB clients.
- Fixed an issue where messages in the WebSocket client were incorrectly shared across all instances.

## [0.3.8] - 2023-11-30

Expand Down
4 changes: 1 addition & 3 deletions livechat/utils/ws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ def on_message(ws_client: WebSocketApp, message: str):

class WebsocketClient(WebSocketApp):
''' Custom extension of the WebSocketApp class for livechat python SDK. '''

messages: List[dict] = []

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.messages: List[dict] = []
self.on_message = on_message

def open(self,
Expand Down

0 comments on commit d6ecf2e

Please sign in to comment.