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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 1656 additions and 67 deletions

View file

@ -0,0 +1,12 @@
module websocket
import net
// error_code returns the error code
fn error_code() int {
return C.WSAGetLastError()
}
const (
error_ewouldblock = net.WsaError.wsaewouldblock // blocking error code
)