A Javascript client implementing the xpeer spec
XPeer is currently in beta and under heavy development. Make sure, that your client version is compatible with your server version.
npm i xpeer-client
or
yarn add xpeer-client
Create a connection to a Relay Server:
const client = XPeer.createConnection('wss://my-server.com/xpeer')
Docs are currently in progress..., please refer to the xpeer.ts file for now.
Currently only a server implementation in Golang is available. You can find it here.