codinget
358f47bc79
feat(tsconnect): add TCP listening to ipn.listen
...
Extend ipn.listen to also accept "tcp"/"tcp4"/"tcp6" and return a
TCPListener bound to a netstack gonet.TCPListener. The listener
exposes accept/close/addr like a Go net.Listener and additionally
implements Symbol.asyncIterator so JS callers can write:
for await (const conn of listener) { ... }
The async iterator returns done when the listener is closed (via
errors.Is(net.ErrClosed)) and rejects on any other accept error.
Symbol-keyed properties are set via Reflect.set since syscall/js
only exposes string-keyed Set.
2026-07-28 20:10:01 +00:00
..
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-07-23 20:15:41 +01:00
2026-07-10 14:26:11 -07:00
2026-01-23 15:49:45 -08:00
2026-07-27 05:42:29 -07:00
2026-07-22 20:36:05 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-07-07 13:12:13 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-07-21 15:44:45 -06:00
2026-05-15 09:37:22 -07:00
2026-01-23 15:49:45 -08:00
2026-06-18 16:32:08 +01:00
2026-07-27 12:06:41 +01:00
2026-07-14 13:26:40 +01:00
2026-01-23 15:49:45 -08:00
2026-03-06 13:32:03 -08:00
2026-01-23 15:49:45 -08:00
2026-04-28 10:18:32 -07:00
2026-07-10 14:26:11 -07:00
2026-06-01 16:12:08 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-05-11 11:12:11 -07:00
2026-01-27 14:49:56 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-05-01 06:51:40 -07:00
2026-03-06 13:32:03 -08:00
2026-06-03 19:36:19 -07:00
2026-01-23 15:49:45 -08:00
2026-07-19 09:58:50 -07:00
2026-03-06 13:32:03 -08:00
2026-01-23 15:49:45 -08:00
2026-04-27 18:54:14 -07:00
2026-07-27 13:59:29 -07:00
2026-07-27 13:59:29 -07:00
2026-01-23 15:49:45 -08:00
2026-07-14 13:44:21 +01:00
2026-06-08 13:14:28 +01:00
2026-07-28 20:10:01 +00:00
2026-07-22 20:36:05 -07:00
2026-04-22 13:34:18 -04:00
2026-07-10 14:26:11 -07:00
2026-01-23 15:49:45 -08:00
2026-07-13 15:04:51 -07:00
2026-07-19 09:58:50 -07:00
2026-07-10 14:26:11 -07:00
2026-07-15 11:45:02 -04:00
2026-01-23 15:49:45 -08:00