Eldritch Link v5
Eldritch Link v5 (EL5) is the binary RPC protocol used by the current Nunu Unity and Unreal SDKs. It carries function calls, results, errors, and notifications over one WebSocket connection.
Connection URI
A connection URI has this form:
<scheme>://<host>:<port>/<connection-id>The host, explicit port, and one nonempty connection ID path segment identify the endpoint and session. Use the URI provided by the Flayer debugger in Nexus.
| Scheme | Transport | Certificate behavior |
|---|---|---|
el:// | WebSocket (ws://) | No TLS |
els:// | Secure WebSocket (wss://) | Validates the server certificate |
elx:// | Secure WebSocket (wss://) | Unity SDK option for development with a self-signed certificate |
The Unreal Engine 5 SDK accepts el:// and els://. The Unity SDK also accepts elx://.
Frames
EL5 defines four frame kinds:
| Frame | Purpose |
|---|---|
| Call | Invokes a named function and carries its arguments |
| Reply | Returns values for a call |
| Error | Returns an error type and message |
| Notify | Sends a named notification without a reply |
Call IDs associate a Call with its Reply or Error. A Notify is fire-and-forget.
Values
EL5 values are self-describing:
| Value | Meaning |
|---|---|
| Null | No value |
| Int | Signed 64-bit integer |
| Float | 64-bit floating-point number |
| Bool | Boolean |
| String | UTF-8 text |
| Binary | Byte sequence |
| Array | Ordered list of EL5 values |
| Map | String-keyed collection of EL5 values |
Each engine SDK maps its supported language types to these values and validates conversions. For engine-specific handler signatures, see the Unity and Unreal Engine guides.
EL5 endpoints are incompatible with clients that speak Eldritch Link v4. Connect a v2 SDK build to an EL5 endpoint.