11 lines
161 B
V
11 lines
161 B
V
module core
|
|
|
|
import net.websocket
|
|
|
|
fn connect_ws(url string) ?&websocket.Client {
|
|
mut ws := websocket.new_client(url) ?
|
|
|
|
ws.connect() ?
|
|
|
|
return &ws
|
|
} |