Use existing JS Websocket
Aperta
- Lingua principale
- Go
- Stelle
- 5.5k
- Fork
- 372
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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)
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.