fix: declare plugin service websocket authority

This commit is contained in:
2026-06-25 16:52:20 +09:00
parent 7a4fd97526
commit 6c8998878d
5 changed files with 44 additions and 5 deletions
@@ -11,6 +11,7 @@ permissions = [
{ kind = "service", name = "example_service" },
{ kind = "surface", surface = "ingress" },
{ kind = "ingress", name = "example_ws" },
{ kind = "host_api", api = "websocket" },
]
[runtime]
@@ -34,3 +35,8 @@ description = "Handles host-owned WebSocket text events and returns websocket_se
event_kinds = ["websocket_text"]
sources = ["websocket:wss://example.com/socket"]
input_schema = { type = "object" }
[[websocket]]
scheme = "wss"
host = "example.com"
path_prefixes = ["/socket"]