1.0.12 • Published 8 months ago

@session.js/bun-network v1.0.12

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

@session.js/bun-network

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'
new Session({ network: new BunNetwork() })

Usage with proxy:

import { BunNetwork } from '@session.js/bun-network'
new Session({ 
  network: new BunNetwork({
    proxy: {
      protocol: 'https',
      username: 'username', // optional
      password: 'password', // optional
      hostname: 'proxy.example.com',
      port: 8080,
    } // or pass string like https://username:password@proxy.example.com:8080
  }) 
})

Made for session.js

Use Session messenger programmatically with Session.js: Session bots, custom Session clients, and more.

Donate

hloth.dev/donate

1.0.11

8 months ago

1.0.12

8 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago