PrismarineJS/prismarine-viewer

Sub-directory per players in same port. #177

KaffinPX posted onGitHub


Give more information

posted by rom1504 almost 4 years ago

Like this: localhost/bot/KaffinPX for prismarine-viewer not main directory.

posted by KaffinPX almost 4 years ago

Yes Its my request Kaffin

posted by fox3000foxy almost 4 years ago

I have a code but it crashes mostly, we need to integrate it to viewer

posted by KaffinPX almost 4 years ago

youre right its that

localhost:8080/bot/Fox3000 for have fp view of Fox3000

posted by fox3000foxy almost 4 years ago

Please give more information What is the use case ? What do you expect this to do

posted by rom1504 almost 4 years ago

I’ll clarify (they explained to me in Discord). Basically, since Heroku doesn’t allow for them to bind to multiple ports and they want to have multiple bots (each with its own viewer), the obvious answer is to use subdirectories (like https://example.com/bot-01 https://example.com/bot-02 and https://example.com/bot-03)

posted by AwesomestCode almost 4 years ago

yeah its that

posted by fox3000foxy almost 4 years ago

I think it would make sense for you to directly use the core lib to set that up You can use https://github.com/PrismarineJS/prismarine-viewer/blob/master/lib/mineflayer.js as an example

posted by rom1504 almost 4 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests