mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
x.websocket: move to net.websocket module (#10648)
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
// websocket module implements websocket client and a websocket server
|
||||
// attribution: @thecoderr the author of original websocket client
|
||||
// advice that the implementation is deprecated and moved to the net.websocket module!
|
||||
// it will be removed in later versions
|
||||
[manualfree]
|
||||
module websocket
|
||||
|
||||
import net
|
||||
import net.http
|
||||
import x.openssl
|
||||
import net.openssl
|
||||
import net.urllib
|
||||
import time
|
||||
import log
|
||||
@ -74,6 +76,7 @@ pub enum OPCode {
|
||||
}
|
||||
|
||||
// new_client instance a new websocket client
|
||||
[deprecated: 'use net.websocket module instead']
|
||||
pub fn new_client(address string) ?&Client {
|
||||
uri := parse_uri(address) ?
|
||||
return &Client{
|
||||
|
Reference in New Issue
Block a user