This network adapter for @session.js/client uses Bun.sh runtime to fetch Session nodes. It exports onRequest method that handles requests
This package can't be used in browser. If you want to use it on proxy server for your Session web client, try @session.js/bun-network-remote.
Usage:
import{BunNetwork}from'@session.js/bun-network'newSession({network: newBunNetwork()})Usage with proxy:
import{BunNetwork}from'@session.js/bun-network'newSession({network: newBunNetwork({proxy: {protocol: 'https',username: 'username',// optionalpassword: 'password',// optionalhostname: 'proxy.example.com',port: 8080,}// or pass string like https://username:password@proxy.example.com:8080})})Use Session messenger programmatically with Session.js: Session bots, custom Session clients, and more.
hloth.dev/donate · Tor: hlothdevzkti6suoksy7lcy7hmpxnr3msu5waokzaslsi2mnx5ouu4qd.onion/donate