Skip to content

Commit 9e31935

Browse files
committed
fix formatting
1 parent 535aa90 commit 9e31935

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/app.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,14 @@ export function createApp(testConfig?: ExtendedProxyConfig) {
148148
const { connectionIds, encoding } = c.req.valid("query");
149149
const data = await c.req.text();
150150

151-
const buffer = parseBuffer(data, encoding);
151+
const buffer = parseBuffer(data, encoding);
152152

153-
const results: SendResult[] = [];
154-
for (const [proxy, matchingConIds] of proxyStore.getProxiesByConnectionIds(connectionIds)) {
155-
results.push(...proxy.sendToClients(matchingConIds, buffer));
156-
}
157-
return c.json({ results });
158-
},
159-
);
153+
const results: SendResult[] = [];
154+
for (const [proxy, matchingConIds] of proxyStore.getProxiesByConnectionIds(connectionIds)) {
155+
results.push(...proxy.sendToClients(matchingConIds, buffer));
156+
}
157+
return c.json({ results });
158+
});
160159

161160
app.post("/send-to-all-clients", zValidator("query", encodingSchema), async (c) => {
162161
const { encoding } = c.req.valid("query");

0 commit comments

Comments
 (0)