]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ui-common): forward close code/reason in mock WebSocket factory
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 16 Apr 2026 21:24:18 +0000 (23:24 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 16 Apr 2026 21:24:18 +0000 (23:24 +0200)
commit159977e62236e1b912537b0ea168e5fde81899f5
tree0699fb4f08b7317ccc4a48001d0e52b19b72547d
parentc6c99a1915eacee52a04431f87350efa9c64feda
fix(ui-common): forward close code/reason in mock WebSocket factory

close() and triggerClose() now accept optional code and reason params
and pass them through to the onclose callback (default: 1000, '').
ui/common/tests/mocks.ts