Skip to content

Commit d3effca

Browse files
committed
Removed all websocket components from the client side
1 parent 277cca3 commit d3effca

File tree

2 files changed

+0
-218
lines changed

2 files changed

+0
-218
lines changed

src/murfey/client/multigrid_control.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import json
21
import logging
32
import subprocess
43
import threading
@@ -10,7 +9,6 @@
109
from typing import Dict, List, Optional
1110
from urllib.parse import urlparse
1211

13-
import murfey.client.websocket
1412
from murfey.client.analyser import Analyser
1513
from murfey.client.context import ensure_dcg_exists
1614
from murfey.client.contexts.spa import SPAModularContext
@@ -97,11 +95,6 @@ def __post_init__(self):
9795
self.rsync_processes = self.rsync_processes or {}
9896
self.analysers = self.analysers or {}
9997

100-
self.ws = murfey.client.websocket.WSApp(
101-
server=self.murfey_url,
102-
register_client=False,
103-
)
104-
10598
# Calculate the time offset between the client and the server
10699
current_time = datetime.now()
107100
server_timestamp = capture_get(
@@ -182,17 +175,6 @@ def clean_up_once_dormant(self, running_threads: list[threading.Thread]):
182175
if not success:
183176
log.warning(f"Could not delete database data for {self.session_id}")
184177

185-
# Send message to frontend to trigger a refresh
186-
self.ws.send(
187-
json.dumps(
188-
{
189-
"message": "refresh",
190-
"target": "sessions",
191-
"instrument_name": self.instrument_name,
192-
}
193-
)
194-
)
195-
196178
# Mark as dormant
197179
self.dormant = True
198180

@@ -293,15 +275,6 @@ def _start_rsyncer_multigrid(
293275
transfer=machine_data.get("data_transfer_enabled", True),
294276
restarted=str(source) in self.rsync_restarts,
295277
)
296-
self.ws.send(
297-
json.dumps(
298-
{
299-
"message": "refresh",
300-
"target": "rsyncer",
301-
"session_id": self.session_id,
302-
}
303-
)
304-
)
305278

306279
def _rsyncer_stopped(self, source: Path, explicit_stop: bool = False):
307280
if explicit_stop:

src/murfey/client/websocket.py

Lines changed: 0 additions & 191 deletions
This file was deleted.

0 commit comments

Comments
 (0)