MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / selectConnection

Function selectConnection

devtools/modules/connectionManager.js:100–112  ·  view source on GitHub ↗
(connectionId)

Source from the content-addressed store, hash-verified

98}
99
100export async function selectConnection(connectionId) {
101 const isSelected = setSelectedConnection(connectionId);
102
103 if (callbacks.showListView) callbacks.showListView();
104 if (callbacks.renderMessageList) callbacks.renderMessageList({ force: true });
105 await renderConnectionList();
106
107 if (isSelected && state.pendingFilters.length > 0) {
108 elements.messageFilterContainer.style.display = 'block';
109 elements.btnToggleFilter.classList.add('expanded');
110 if (callbacks.renderFilterConditions) callbacks.renderFilterConditions();
111 }
112}
113
114export function handleStreamEvent(payload) {
115 log('Handling stream event:', payload.type, payload);

Callers 2

renderConnectionListFunction · 0.70
handleStreamEventFunction · 0.70

Calls 2

setSelectedConnectionFunction · 0.70
renderConnectionListFunction · 0.70

Tested by

no test coverage detected