diff --git a/doc/server_plugin.md b/doc/server_plugin.md index fa511b3a..1f1d7e28 100644 --- a/doc/server_plugin.md +++ b/doc/server_plugin.md @@ -70,7 +70,7 @@ The response can look like any of the following: ### Operation -Currently `Login` and `NewProxy` operations are supported. +Currently `Login`, `NewProxy` and `Ping` operations are supported. #### Login @@ -135,6 +135,24 @@ Create new proxy } ``` +#### Ping + +Heartbeat from frpc + +``` +{ + "content": { + "user": { + "user": , + "metas": mapstring + "run_id": + }, + "timestamp": , + "privilege_key": + } +} +``` + ### Server Plugin Configuration ```ini @@ -155,7 +173,7 @@ ops = NewProxy addr: the address where the external RPC service listens on. path: http request url path for the POST request. -ops: operations plugin needs to handle (e.g. "Login", "NewProxy"). +ops: operations plugin needs to handle (e.g. "Login", "NewProxy", "Ping"). ### Metadata