Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@brajkowski/connect4-multiplayer-common
Advanced tools
This library provides shared objects used by both the connect 4 multiplayer client and server.
This library defines the packet interfaces and actions used by both the connect 4 multiplayer client and server.
Using npm:
$ npm i --save @brajkowski/connect4-multiplayer-common
server => client
packets adhere to the ServerPacket
interfaceclient => server
packets adhere to the ClientPacket
interfaceBoth the client and the server send an action value in their respective packet payloads in order to trigger, and respond to, events:
ServerAction Values | Description |
---|---|
0 | The client action is not allowed. |
1 | An opponent has joined the session. |
2 | An opponent has placed a chip. |
3 | A new session has been created. |
4 | The client has joined a session. |
5 | The session the client is trying to reach does not exist. |
6 | The opponent has quit (graceful exit). |
7 | The game has finished and a new one is starting. |
8 | The session has ended (due to inactivity). |
ClientAction Values | Description |
---|---|
0 | The client is requesting a new session to be created. |
1 | The client is requesting to join an existing session. |
2 | The client is requesting to place a chip at a location. |
3 | The client is gracefully quitting / leaving the session. |
Using npm:
$ npm run build
will produce the compiled library under /dist
.
FAQs
This library provides shared objects used by both the connect 4 multiplayer client and server.
The npm package @brajkowski/connect4-multiplayer-common receives a total of 0 weekly downloads. As such, @brajkowski/connect4-multiplayer-common popularity was classified as not popular.
We found that @brajkowski/connect4-multiplayer-common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.