kyuupichan / aiorpcX

Generic async RPC implementation, including JSON-RPC
MIT License
27 stars 23 forks source link

FinalRPCError(RPCError): send error to client and then disconnect #15

Closed SomberNight closed 5 years ago

SomberNight commented 5 years ago

as title, this PR lets user of this library to "send a final error" to connected session after which the connection gets closed

commit https://github.com/kyuupichan/aiorpcX/commit/3669108d2c774f4786bbfd5153c0359f10c500c2 removed session.close_after_send; and since then this functionality is difficult to accomplish