Skip to content
Snippets Groups Projects
Verified Commit 60c76f4a authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: remove unused code

parent 1189fd38
Branches
Tags
No related merge requests found
...@@ -206,52 +206,6 @@ class WebSocketDatasource extends Datasource { ...@@ -206,52 +206,6 @@ class WebSocketDatasource extends Datasource {
}; };
// const self = this;
// let response;
//
// if (self[webConnectSymbol]?.socket?.readyState !== 1) {
// return Promise.reject('The connection is not established.');
// }
//
// return new Promise((resolve, reject) => {
// if (self[receiveQueueSymbol].isEmpty()) {
// resolve();
// }
//
// while (!self[receiveQueueSymbol].isEmpty()) {
//
// const event = self[receiveQueueSymbol].poll();
// const body = event?.data;
// if (!body) continue;
//
// let obj;
// try {
// obj = JSON.parse(body);
// } catch (e) {
//
// let msg = 'the response does not contain a valid json (actual: ';
//
// if (body.length > 100) {
// msg += body.substring(0, 97) + '...';
// } else {
// msg += body;
// }
//
// msg += "; " + e.message + ')';
//
// reject(msg);
// return;
// }
//
// obj = self.transformServerPayload.call(self, obj);
//
//
// self.set(obj);
// return response;
// }
// })
//}
/** /**
* This prepares the data that comes from the server. * This prepares the data that comes from the server.
* Should not be called directly. * Should not be called directly.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment