MCPcopy Index your code
hub / github.com/FlashpointProject/launcher / request

Method request

src/back/SocketServer.ts:219–234  ·  view source on GitHub ↗
(client: BackClients['clients'][number], type: TYPE, ...args: Parameters<BackOutTemplate[TYPE]>)

Source from the content-addressed store, hash-verified

217 // Send
218
219 public async request<TYPE extends BackOut>(client: BackClients['clients'][number], type: TYPE, ...args: Parameters<BackOutTemplate[TYPE]>) {
220 // Wrap in context object so it can be mutated by middleware
221 const res = {
222 type,
223 args
224 };
225 try {
226 // Call middleware
227 await this.middlewareRes.execute(res);
228 } catch (err) {
229 if (res.type !== BackOut.LOG_ENTRY_ADDED) {
230 log.info('Launcher', 'Error in middleware - Type: ' + BackOut[type]);
231 }
232 }
233 return server_request(client, type, ...args);
234 }
235
236 public async send<TYPE extends BackOut>(client: BackClients['clients'][number], type: TYPE, ...args: Parameters<BackOutTemplate[TYPE]>): Promise<void> {
237 // Wrap in context object so it can be mutated by middleware

Callers 15

showSaveDialogBackMethod · 0.95
showOpenDialogFuncMethod · 0.95
openExternalMethod · 0.95
getGamePathFunction · 0.45
index.tsxFile · 0.45
handleProtocolMethod · 0.45
onDatabaseLoadedMethod · 0.45
onCurateLoadMethod · 0.45
onExtensionsLoadMethod · 0.45
initMethod · 0.45
componentDidUpdateMethod · 0.45

Calls 2

server_requestFunction · 0.90
executeMethod · 0.65

Tested by

no test coverage detected