1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: fix crash when running examples/ws/client.v outside of valgrind

This commit is contained in:
Delyan Angelov
2020-07-22 18:42:57 +03:00
parent b0d76c59f7
commit ebbc7bd471
4 changed files with 14 additions and 11 deletions

View File

@ -10,6 +10,7 @@ fn main() {
}
fn ws_test(uri string) {
println('connecting to $uri ...')
mut ws := websocket.new(uri)
ws.subscriber.subscribe('on_open', on_open)
ws.subscriber.subscribe('on_message', on_message)