WsServer TLS 지원 완료 후 crosstest에 누락됐던 WSS phase를 4개 orchestrator에 추가. TypeScript는 handshake 안정성을 위해 phase별 서버 인스턴스를 분리했다. WsServer init 강화(setReuseAddr, startError 전파), TypeScript closeWebSocket 안정화 포함. |
||
|---|---|---|
| .. | ||
| crosstest | ||
| src | ||
| test | ||
| .gitignore | ||
| CROSSTEST_CHECKLIST.md | ||
| IMPLEMENTATION_CHECKLIST.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
TypeScript Toki Socket
Status: planned
This package implements Toki 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