aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/net.exports.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-04-07feat(tls.Server) basic support (cert, key, rejectUnauthorized, requestCert, ↵Gravatar Ciro Spaciari 1-14/+113
ca) #2412 (#2552) * cherry picked * add StringOrBuffer parameter * Format and adds types * update uws * fix tests * more types * fix typing * add timeouts, clean some stuff * move tests to describe * fixes SSL hostname when Host is provided * cleanup on tests * change 127.0.0.1 to 0.0.0.0 * try another listening parameter * test timings and update uws * remove unnecessary comment * move listening event around * always await Bun.connect * do not fail if the tests already passed when using Bun.connect * regenerate classes * undo generated classes * generate classes * fix merge --------- Co-authored-by: cirospaciari <cirospaciari@MiWiFi-RA82-srv.cirospaciari>
2023-03-18[node:net] Fix issue with `listen` callback firing before it's listeningGravatar Jarred Sumner 1-1/+10
2023-03-14Add missing exportGravatar Jarred Sumner 1-6/+8
2023-03-13feat(net.createServer) and adds socket.connect IPC support (#2337)Gravatar Ciro Spaciari 1-4/+299
* added net.Server * fix fmt * fix cast and move test * fix node-net.tests.ts but breaks server data receive * fix end and close only emitting when data or pipe was added * fix socket starting paused * add echo test * fix fmt * fix fmt * on close if the socket is paused, keep paused until the user resumes it to match node behavior * resume on connect * fix getConnections, error on close, make _Handler private and create symbols for SocketServerHandlers * add path support (IPC) * fix unix domains support, add connect unix tests * fix unix socket tests * emit listening and listening error on next tick * fix connection flask test * try fix connect error on macos test * merge connection and drop tests * added exclusive option * fix socket.zig fmt * fix validation for options and add test for it * pass prettier fmt
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-9/+2
2023-01-29[breaking] Add `binaryType` option to Bun.connect & Bun.listenGravatar Jarred Sumner 1-5/+6
This is a breaking change because the default is `Buffer`, but previously the default was `Uint8Array`. While `Buffer` is a subclass of `Uint8Array`, it still technically is a breaking change because `slice` in `Uint8Array` is not semantically identical to `slice` in `Buffer` cc @colinhacks, the .d.ts changes I made here aren't great.
2023-01-17make node-redis workGravatar Jarred Sumner 1-0/+2
2023-01-16Make sure the socket keeps the process aliveGravatar Jarred Sumner 1-0/+2
2023-01-12Reduce amount of cloningGravatar Jarred Sumner 1-5/+11
2023-01-11[node:net] Hopefully fix unix socketsGravatar Jarred Sumner 1-1/+4
2023-01-10Support socketPathGravatar Jarred Sumner 1-7/+22
2023-01-10potentially support tls in some casesGravatar Jarred Sumner 1-7/+34
2023-01-04Support non-classes in node:net (#1712)Gravatar Jarred Sumner 1-198/+216
* Support non-classes * Update net.exports.js * Make it less observable * Update net.exports.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-02[socket] handle `connectError` (#1705)Gravatar Alex Lam S.L 1-0/+4
assorted clean-ups & fixes
2023-01-02implement `net.Socket` (#1701)Gravatar Alex Lam S.L 1-0/+248
- support TCP sockets for now, i.e. no IPC - extra features like keep-alive, no-delay etc. are absent due to limitations of uSockets - fix `jest` to treat `done(nullish)` as success
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 1-1/+1
* Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2022-10-27Allow overriding node polyfills via `BUN_OVERRIDE_MODULE_PATH`Gravatar Jarred Sumner 1-0/+61