beef331 / nettyrpc Goto Github PK
View Code? Open in Web Editor NEWImplements an RPC like system using netty.
License: MIT License
Implements an RPC like system using netty.
License: MIT License
Check the example here:
https://github.com/RattleyCooper/nettyrpc-1/tree/examples/example/authoritativeChatClient
The client displays it's own chat message as if it came from another person:
# client.nim
proc display_chat(name, message: string) {.networked.} =
## Display chat message from the server.
eraseLine()
echo fmt"{getClockStr()} {name} says: {message}"
proc send_chat(name, msg: string) =
# If you want client actions to take place instantly, create a procedure
# to handle client-side logic and then dispatch the RPC.
eraseLine()
echo fmt"{getClockStr()} You said: {msg}"
rpc("send_chat", (name: name, msg: msg))
it should call the rpc on other clients, but it is sent to the caller of the rpc as well. If you send a chat you will see both messages in the chat.
Allows a user to join and will send the name, but the paddle does not update position, could possibly be because the new relayed logic does not check the source of the packet and sends it to everyone, needs to be investigated and fixed.
After further testing seems to be purely random what works, sometimes ball will not sync, othertimes paddle.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.