File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 9393const char * debug_query_string ; /* client-supplied query string */
9494
9595/* Note: whereToSendOutput is initialized for the bootstrap/standalone case */
96+ #ifdef EMSCRIPTEN
9697CommandDest whereToSendOutput = DestRemote ;
98+ #else
99+ CommandDest whereToSendOutput = DestDebug ;
100+ #endif
97101
98102/* flag for logging end of session */
99103bool Log_disconnections = false;
@@ -521,12 +525,14 @@ ReadCommand(StringInfo inBuf)
521525{
522526 int result ;
523527
528+ #ifdef EMSCRIPTEN
529+ result = EmscriptenBackend (inBuf );
530+ #else
524531 if (whereToSendOutput == DestRemote )
525- result = EmscriptenBackend (inBuf );
526- else if (whereToSendOutput == DestDebugJson )
527- result = EmscriptenBackend (inBuf );
532+ result = SocketBackend (inBuf );
528533 else
529534 result = InteractiveBackend (inBuf );
535+ #endif
530536 return result ;
531537}
532538
You can’t perform that action at this time.
0 commit comments