Plugin Router details
- Address
common/plugin/{plugin_id}/{path}— REST is always POST meta["transport"]: api · socket · tcp · mqtt · webrtc- Restrict transports:
router.on(..., explicit_routes=["api"]),router.subscribe(..., explicit_events=["tcp"])
| Code | Meaning |
|---|---|
| 404 | No handler registered (for about 1 minute after a restart, 504 before 404) |
| 504 | No response within 10 s |
| 503 | Plugin gateway is down |
| 500 | Handler exception (the PluginRouteError code, if one is raised) |
InfoRequires rainbow-rb-sdk 0.0.9.dev5 or later on the robot (older versions have no
plugin.router → AttributeError). During muscat-pk dev, call it through the local Muscat: curl -X POST http://localhost:3000/common/plugin/<dev-id>/hello (the dev id is printed at startup)