mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
x.websocket: move to net.websocket module (#10648)
This commit is contained in:
parent
c44a47acb1
commit
ec973f5c6e
41 changed files with 1656 additions and 67 deletions
|
@ -1,7 +1,7 @@
|
|||
module websocket
|
||||
|
||||
import net
|
||||
import x.openssl
|
||||
import net.openssl
|
||||
import log
|
||||
import time
|
||||
import rand
|
||||
|
@ -35,6 +35,7 @@ pub mut:
|
|||
}
|
||||
|
||||
// new_server instance a new websocket server on provided port and route
|
||||
[deprecated: 'use net.websocket module instead']
|
||||
pub fn new_server(family net.AddrFamily, port int, route string) &Server {
|
||||
return &Server{
|
||||
ls: 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue