UNPKG

rxprotoplex-peers

Version:

A reactive peer-to-peer management library built on RxJS and Protoplex for efficient signaling, matchmaking, and multiplexing.

10 lines (9 loc) 213 B
const allocatePort = pool => { try { return pool.allocate(); } catch (error) { console.error("Failed to allocate port:", error.message); return null; } }; export {allocatePort}