UNPKG

@socketsupply/socket

Version:

A Cross-Platform, Native Runtime for Desktop and Mobile Apps — Create apps using HTML, CSS, and JavaScript. Written from the ground up to be small and maintainable.

18 lines (15 loc) 463 B
/** * @module network * * Provides a higher level API over the latica protocol. * * @see {@link https://socketsupply.co/guides/#p2p-guide} * */ import api from './latica/api.js' import { Cache, Packet, sha256, Encryption, NAT } from './latica/index.js' import events from './events.js' import dgram from './dgram.js' const network = options => api(options, events, dgram) export { network, Cache, sha256, Encryption, Packet, NAT } export default network