Implement Keep Alive messages.
This commit is contained in:
parent
66ebcb662d
commit
4c07699082
11
src/requests/keepalive.cr
Normal file
11
src/requests/keepalive.cr
Normal file
@ -0,0 +1,11 @@
|
||||
class AuthD::Request
|
||||
IPC::JSON.message KeepAlive, 250 do
|
||||
def initialize()
|
||||
end
|
||||
|
||||
def handle(authd : AuthD::Service, fd : Int32)
|
||||
Response::KeepAlive.new
|
||||
end
|
||||
end
|
||||
AuthD.requests << KeepAlive
|
||||
end
|
7
src/responses/keepalive.cr
Normal file
7
src/responses/keepalive.cr
Normal file
@ -0,0 +1,7 @@
|
||||
class AuthD::Response
|
||||
IPC::JSON.message KeepAlive, 250 do
|
||||
def initialize()
|
||||
end
|
||||
end
|
||||
AuthD.responses << KeepAlive
|
||||
end
|
Loading…
Reference in New Issue
Block a user