proto-socket/typescript
toki d0754a353a refactor: rename toki_socket to proto_socket across all languages
- Rename package/module from toki_socket to proto_socket in Dart, Kotlin, Python
- Update crosstest implementations to use renamed packages
- Add new proto_socket skill, deprecate add-toki-socket-crosstest-language skill
- Update domain rules for all languages
- Update documentation (README, PORTING_GUIDE, PROTOCOL, VERSIONING)
2026-05-02 07:19:12 +09:00
..
crosstest refactor: rename toki_socket to proto_socket across all languages 2026-05-02 07:19:12 +09:00
src 기능: kotlin server crosstest에 WSS phase를 추가한다 2026-04-27 01:05:21 +09:00
test sync: update communicator implementation across all languages 2026-04-26 05:31:56 +09:00
.gitignore feat: add typescript implementation and crosstest files 2026-04-24 07:16:37 +09:00
CROSSTEST_CHECKLIST.md feat: add typescript implementation and crosstest files 2026-04-24 07:16:37 +09:00
IMPLEMENTATION_CHECKLIST.md feat: add typescript implementation and crosstest files 2026-04-24 07:16:37 +09:00
package-lock.json refactor: rename toki_socket to proto_socket across all languages 2026-05-02 07:19:12 +09:00
package.json refactor: rename toki_socket to proto_socket across all languages 2026-05-02 07:19:12 +09:00
README.md refactor: rename toki_socket to proto_socket across all languages 2026-05-02 07:19:12 +09:00
tsconfig.json feat: add typescript implementation and crosstest files 2026-04-24 07:16:37 +09:00

TypeScript Proto Socket

Status: planned

This package implements Proto Socket protocol version 0.1 for TypeScript.

Scope

  • Runtime targets: Node.js TCP, Node.js WebSocket, browser-friendly core types.
  • Currently in scope: Communicator, BaseClient, TCP/WS client and server helpers, Go cross-language tests.
  • Out of scope for this iteration: TLS+TCP, WSS, browser WebSocket transport wrapper.

Proto Generation

Generated bindings live in src/packets/.

cd typescript
PATH="$PWD/node_modules/.bin:$PATH" protoc \
  --proto_path ../proto \
  --es_out src/packets \
  --es_opt target=ts \
  message_common.proto

After generation, run from the repository root:

tools/check_proto_sync.sh

Validation

cd typescript
npx tsc --noEmit
npx vitest run
cd go
go run ./crosstest/go_typescript.go