You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(standard-server): change SHORTABLE_ORIGIN from orpc:// to http:// for Android WebView compatibility (#1295)
- [x] Change `SHORTABLE_ORIGIN` from `'orpc://localhost'` to
`'http://orpc'` in `/packages/standard-server-peer/src/codec.ts`
- [x] Update `SHORTABLE_ORIGIN_MATCHER` regex to match the new origin
pattern
- [x] Update comment in SerializedRequestPayload interface to reflect
new origin
- [x] Update tests in `/packages/standard-server-peer/src/codec.test.ts`
to use the new `http://orpc` scheme
- [x] Update `/packages/client/src/adapters/message-port/rpc-link.ts` to
use `http://orpc`
- [x] Update `/packages/client/src/adapters/websocket/rpc-link.ts` to
use `http://orpc`
- [x] Update all related test files to use `http://orpc`:
- `/packages/client/src/adapters/message-port/rpc-link.test.ts`
- `/packages/client/src/adapters/websocket/rpc-link.test.ts`
- `/packages/server/src/adapters/websocket/rpc-handler.test.ts`
- `/packages/server/src/adapters/crossws/rpc-handler.test.ts`
- `/packages/server/src/adapters/bun-ws/rpc-handler.test.ts`
- `/packages/server/src/adapters/message-port/rpc-handler.test.ts`
- `/packages/server/src/adapters/ws/rpc-handler.test.ts`
- [x] Run tests to verify changes work correctly (all 4631 tests passed)
- [x] Run code review (no issues found)
- [x] Run security checks (no vulnerabilities found)
<!-- START COPILOT CODING AGENT SUFFIX -->
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
> On codec.ts, Please change SHORTABLE_ORIGIN to http://orpc becaues
currently orpc:// schema is not allowed in adroid webview - please fix
it and update according tests
</details>
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: unnoq <64189902+unnoq@users.noreply.github.com>
0 commit comments