-
Notifications
You must be signed in to change notification settings - Fork 3
Rewrite from Scratch #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Changed module and moduleResolution to "NodeNext"
Moved the 2 devDependencies from dependencies to devDependencies (and updated to latest for node)
Just a regen after changing the package.json
|
There are two new additions: The methods |
|
Fixed case insensitivity problems discussed in the discord channels. |
|
Add a way to generate a joinkey which can be used in combination with the server to establish a web socket connection with |
import 'dotenv/config'
import Client, { MessageTypes } from '../pixelwalker/dist'
const client = await Client.new(process.env)
client.connection.on('*PlayerInit', (...data) => {
client.init()
})
client.connect(process.env)The following minimal reproducible example can now be used to keep an indefinite connection with the server. |
Corrected type of the set, if it throws, type won't change really
Fixed ts error
This Pull Request will track and document the JavaScript SDK from scratch by tactically restructuring the API from ground, learning the lessons from the old API and keeping the code structured. Quick Access:
The documentation will be tracked in this Pull Request.