clockworklabs / clockworklabs/SpacetimeDB

Disconnect clients who send ill-typed or unparseable function args

Open
#5,002 1 comment 1 reaction 1 assignee View on GitHub

@gefjon is already working on this.

Since May 12, 2026.

Dominant language
Rust
Stars
25.2k
Forks
1.1k
Avg merge
2d 7h
Merged PRs (30d)
46

Description

We generally rely on clients having a correct and up-to-date schema. A clear indication they do not have such a schema in the form of an ill-typed function call request means that we cannot correctly interoperate with that client. Even if some of the client's other messages may incidentally succeed processing, we should not assume them to be processed correctly. As such, the SpacetimeDB server should disconnect any client that sends an ill-typed function call along a WebSocket connection.

Note that our SDKs already behave according to this theory; they will error and disconnect when receiving row data they cannot parse from the server.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.