Checkpoint Eibenreith ink architecture
This commit is contained in:
Vendored
+3
-2
@@ -204,11 +204,12 @@ io.on('connection', (socket) => {
|
||||
return;
|
||||
}
|
||||
const command = String(data?.command || '').trim();
|
||||
const requestId = Number(data?.requestId || 0);
|
||||
// During typography and animation work, mirror the command back through
|
||||
// the real socket path so the UI pipeline can be tested end to end.
|
||||
socket.emit('narrativeResponse', createTextTurn(socket.id, command, {
|
||||
socket.emit('narrativeResponse', withClientRequestId(createTextTurn(socket.id, command, {
|
||||
currentRoomId: gameRunner.getGameState().currentRoomId
|
||||
}, gameRunner.getSuggestions()));
|
||||
}, gameRunner.getSuggestions()), Number.isInteger(requestId) && requestId > 0 ? requestId : undefined));
|
||||
}
|
||||
catch (error) {
|
||||
console.error('Error processing command:', error);
|
||||
|
||||
Reference in New Issue
Block a user