Skip to content

fix(extract): return websocket handler result - #21

Merged
sshanks-kx merged 1 commit into
KxSystems:masterfrom
belowzeroff:fix/f003-ws-return-value
Jul 24, 2026
Merged

fix(extract): return websocket handler result#21
sshanks-kx merged 1 commit into
KxSystems:masterfrom
belowzeroff:fix/f003-ws-return-value

Conversation

@belowzeroff

Copy link
Copy Markdown
Contributor

The ws handler was missing ;res at the end, unlike all other handlers (pg, ph, pp) which return the result. This caused websocket calls to return null/nothing to the caller.

The ws wrapper discarded the return value of the original .z.ws handler
by omitting `;res` at the end of the function body. In kdb+, .z.ws can
return data to the websocket client. By discarding the return value,
all websocket response data was lost.

Fix: add `;res` at the end of the ws function body.
@sshanks-kx sshanks-kx self-assigned this Jul 24, 2026
@sshanks-kx
sshanks-kx self-requested a review July 24, 2026 08:30
@sshanks-kx

Copy link
Copy Markdown
Collaborator

thanks

@sshanks-kx
sshanks-kx merged commit 368bf56 into KxSystems:master Jul 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants