Initial commit
This commit is contained in:
11
payload/core/connect.v
Normal file
11
payload/core/connect.v
Normal file
@@ -0,0 +1,11 @@
|
||||
module core
|
||||
|
||||
import net.websocket
|
||||
|
||||
fn connect_ws(url string) ?&websocket.Client {
|
||||
mut ws := websocket.new_client(url) ?
|
||||
|
||||
ws.connect() ?
|
||||
|
||||
return &ws
|
||||
}
|
||||
Reference in New Issue
Block a user