File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments