Disconnect the socket and terminate the process
()
| 550 | |
| 551 | @sio.on('disconnect', namespace='/pty') |
| 552 | def disconnect(): |
| 553 | """ |
| 554 | Disconnect the socket and terminate the process |
| 555 | """ |
| 556 | # request.sid: refer request.sid as socket id. |
| 557 | if request.sid in pdata: |
| 558 | # On disconnect socket manually exit the psql terminal and close the |
| 559 | # parend and child fd then kill the subprocess. |
| 560 | disconnect_socket() |
| 561 | |
| 562 | |
| 563 | @sio.on('server-disconnect', namespace='/pty') |
no test coverage detected