~/bend-docscommunity

package.bend fails

raw source on the hub · import 0xd66ee682d4ce8c656782ca9e0e4634cb/package.bend as Package

bend-net: package entry for BendHub. Source: https://github.com/naoeosavio/bend-net.git

HTTP/1.1 and WebSocket (RFC 6455) over TCP for Bend (no TLS, no DNS). Pure Bend on top of the Base TCP.* kit; the only native code is the three byte-level socket effects in ./effs/ (C + JS twins: send_bytes, recv_bytes, recv_frame). No compiler change. Boundaries: fetch reads at most 8 x 8192 bytes (64 KB cap); https:// is refused with Fail 501.

Package entry point. Publish with:

bend lib/package.bend --publish

Then import an API from its own file (imports are not transitive, so the entry only marks the bundle ready):

import 0x<hash>/http.bend as HTTP import 0x<hash>/ws.bend as WS import 0x<hash>/sha1.bend as SHA1 import 0x<hash>/b64.bend as B64 import 0x<hash>/tcp.bend as TCP

See README.md for the full guide.

6 imports
import Base
import ./b64.bend as B64
import ./http.bend as HTTP
import ./sha1.bend as SHA1
import ./tcp.bend as TCP
import ./ws.bend as WS