coder / coder/websocket

How to get file descriptor from NetConn for EPOLL handling?

Open
#497 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
5.5k
Forks
372
PR merge metrics
No merged PRs in 30d

Description

Hi, as titled. We are trying to get the raw TCP connection to read the file descriptor.

```go
netConn := websocket.NetConn(reqCtx.Context(), wsConn, websocket.MessageText)
```

We want to use this library in combination with https://github.com/smallnest/epoller

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.