Comments (13)
What would be the change needed?
from pitaya.
我希望unity 工程里面可以支持request请求传递jsonObject作为message,而不是固定的protobuf转的c#类作为参数,或者可以提供一个jsonObject转成Imessage的中间处理,就像pomelo这个插件一样,不过这个插件通讯太慢,希望pitaya能取长补短
我希望unity 工程里面可以支持request请求传递jsonObject作为message,而不是固定的protobuf转的c#类作为参数,或者可以提供一个jsonObject转成Imessage的中间处理,就像pomelo这个插件一样,不过这个插件通讯太慢,希望pitaya能取长补短
I hope that the Unity project can support the request request to pass jsonObject as a message, instead of using a fixed protobuf converted C # class as a parameter, or provide an intermediate processing for converting jsonObject to Imessage, just like the Pomelo plugin. However, this plugin is too slow to communicate, and I hope Pitaya can learn from its strengths and make up for its shortcomings
from pitaya.
In this way, I can build a generic method in Unity that allows Lua to access C # by creating classes that can inherit from jsonObject, so that Lua can call the Pitaya plugin to implement network requests
from pitaya.
Pitaya supports json serializer by default, is that OK?
from pitaya.
Should we default to supporting JSON serialization programs now or provide them in the future
from pitaya.
If we can provide default support for JSON, then Pitaya is really perfect
from pitaya.
you could take a look at the source code where the path is : pitaya/serialize/json/json.go
If we can provide default support for JSON, then Pitaya is really perfect
from pitaya.
I'm not sure if there's an issue with my description. Let me rephrase where I need help because the Pitaya Unity plugin only provides access in the form of proto. I need to use JsonObject to access the network in the Unity plugin provided by Pitaya. Can you help me with this
from pitaya.
As shown in the above figure, the Unity plugin provided by Pitaya can only access network functions with IMessage as a parameter. I hope the official can help extend it so that I can use JsonObject's parameters to access Request
from pitaya.
I see, dose the string reload version can work?
For me, I don't use the client sdk at all, so I'm not very familier with it, may be you can implement it by yourself?
from pitaya.
I think I should be able to, but I want to know if using string transmission would result in a much larger network transmission byte count than using IMessage, which could affect the speed of data transmission and reception
from pitaya.
that is a significant issue between performance and api convenience, only yourself could balance them
from pitaya.
I manually wrapped the Request interface, converting it directly from Lua to the protobuf binary format. Some modifications were also made to the underlying pitaya library to adapt to this. The C# layer does not concern itself with or parse protobuf at all.
public bool Request(string route, byte[] buffer, Action<byte[]> action)
from pitaya.
Related Issues (20)
- Concerns about the Global Message Channel 'chLocalProcess' in Pitaya HOT 6
- What about using redis pub/sub to implement rpc and broadcast? HOT 1
- Why does libpitaya not use Golang to generate the client dll/so ? HOT 1
- unit test fail
- `TestAgentHandle` fails randomly
- There is a panic that could interrupt graceful shutdown HOT 1
- How to implement the authentication policy HOT 2
- config WorkerConfig
- cluster_grpc example error HOT 1
- How to connect web socket?
- How to connect web socket? HOT 1
- Example code error(examples/demo/cluster_grpc/main.go) HOT 1
- Discovered incompatibility issue with dependency libraries (pitaya/v2->etcd ->grpc) when updating dependencies HOT 3
- Can you provide a callback function for the error in request path 404? If there is a business interruption, please handle the path error information uniformly HOT 4
- Is there any consideration to provide a way for the backend service to listen for session bind and session close events? HOT 1
- Can you provide a way to custom respond to request type message? HOT 2
- How to know when a server in the cluster is shutdown? HOT 1
- anywhere, i can do something before shakehand? HOT 4
- Data encoding format for websocket communication between vue client and pitaya server HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pitaya.