coder / coder/websocket

Use existing JS Websocket

Abierto
#456 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
5.5k
Forks
372
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hello, I am wondering, with this library, is it possible to use an existing WebSocket that was created in JS land, something like

```go

exportConnect := js.FuncOf(func(this js.Value, args []js.Value) any {
// ...

socket := args[0]
conn, _, err := websocket.From(ctx, socket)
netconn := websocket.NetConn(ctx, conn, websocket.MessageBinary)

// ...
})
js.Global().Set("go__connect", exportConnect)
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by reviewing the websocket.From and websocket.NetConn entry points shown in the issue, along with the library's WebSocket and JavaScript interop documentation. Determine whether an existing JavaScript WebSocket can be supported and define the expected behavior and tests before implementation; done means the capability is documented and verified with a working example or test.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
go, javascript
Área
networking, web-dev
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.