relay: Add multi-user login support (#258)

* relay: add multi-user login support

* relay: Fix close handling, connect username
This commit is contained in:
extremeheat 2022-08-24 00:41:12 -04:00 committed by GitHub
commit c395f0b05b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 5 deletions

View file

@ -170,7 +170,7 @@ For documentation on the protocol, and packets/fields see the [the protocol doc]
### Proxy docs
You can create a proxy ("Relay") to create a machine-in-the-middle (MITM) connection to a server. You can observe and intercept packets as they go through. The Relay is a server+client combo with some special packet handling and forwarding that takes care of the authentication and encryption on the server side. You'll be asked to login if `offline` is not specified once you connect.
You can create a proxy ("Relay") to create a machine-in-the-middle (MITM) connection to a server. You can observe and intercept packets as they go through. The Relay is a server+client combo with some special packet handling and forwarding that takes care of the authentication and encryption on the server side. Clients will be asked to login if `offline` is not specified on connection.
```js
const { Relay } = require('bedrock-protocol')