PrismarineJS / PrismarineJS/node-minecraft-protocol
Adding custom latency delay
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 290
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 7
Description
I'm experimenting with latency and how it affects Minecraft clients and servers.
What would be the easiest way to introduce "fake" latency between a node-minecraft-protocol client and a java server?
Essentially I'm thinking of something like being able to delay all packet writes by a custom spoofedLatency field.
Any way to currently do this? Where should I look if I wanted to implement such a feature?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by tracing how packets are written between the node-minecraft-protocol client and the Java server, then check whether an existing delay or packet hook can support a configurable spoofedLatency field. Done means the chosen latency value delays all packet writes and can be observed in a Minecraft client/server experiment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100