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

Research direction

Start by reading the websocket.NetConn usage shown in the issue and the library's NetConn documentation or implementation, then review the linked smallnest/epoller integration requirements. Determine whether raw file-descriptor access is supported or requires a documented API change; done means the supported approach or limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.