1
0
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:
Tomas Hellström
2021-07-03 01:56:00 +02:00
committed by GitHub
parent c44a47acb1
commit ec973f5c6e
41 changed files with 1656 additions and 67 deletions

View File

@ -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