mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.websocket: call close event (#17300)
This commit is contained in:
@@ -337,6 +337,7 @@ pub fn (mut ws Client) close(code int, message string) ! {
|
||||
defer {
|
||||
ws.shutdown_socket() or {}
|
||||
ws.reset_state() or {}
|
||||
ws.send_close_event(code, message)
|
||||
}
|
||||
ws.set_state(.closing)
|
||||
// mut code32 := 0
|
||||
|
Reference in New Issue
Block a user