Skip to content

Conversation

@Anatoly03
Copy link
Owner

@Anatoly03 Anatoly03 commented Aug 14, 2024

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.

@Anatoly03
Copy link
Owner Author

There are two new additions: The methods profiles() and worlds() on the Client instance that can get you the collections from the server using the pocketbase API.

@Anatoly03
Copy link
Owner Author

Anatoly03 commented Aug 15, 2024

Fixed case insensitivity problems discussed in the discord channels.

@Anatoly03
Copy link
Owner Author

Add a way to generate a joinkey which can be used in combination with the server to establish a web socket connection with client.getJoinKey(world_id)

@Anatoly03
Copy link
Owner Author

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.

@Anatoly03 Anatoly03 linked an issue Aug 15, 2024 that may be closed by this pull request
@Anatoly03 Anatoly03 added enhancement New feature or request update Changes that only edit the API based on new game additions. labels Aug 15, 2024
@Anatoly03 Anatoly03 self-assigned this Aug 15, 2024
@Anatoly03 Anatoly03 closed this Nov 21, 2024
@Anatoly03 Anatoly03 reopened this Nov 21, 2024
Repository owner locked as resolved and limited conversation to collaborators Jan 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request update Changes that only edit the API based on new game additions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

publish project

4 participants