mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ws: send unsolicited pong control frame on connect in ws_test.v (#6010)
This commit is contained in:
committed by
GitHub
parent
2f2463a04c
commit
7b630f0350
@@ -41,7 +41,9 @@ fn ws_test(uri string) {
|
||||
}
|
||||
}
|
||||
|
||||
fn on_open(mut test Test, x voidptr, ws &websocket.Client) {
|
||||
fn on_open(mut test Test, x voidptr, mut ws &websocket.Client) {
|
||||
// Send PONG only for testing porposes
|
||||
ws.send_pong()
|
||||
println('websocket opened.')
|
||||
test.connected = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user