-
-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate gRPC #18
Comments
You're right. I'm sorry, please use it gRPC client from MagicOnion, now. |
I totaly get you with submodules they are huge pain. One option I found for me that works much better than git submodules is git subtree http://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/ |
Our company was using Subtree for another project for a while, |
I see, yes it does require deep understanding of what git is and that is rare for many developers in gamedev industry. P.S The only place that leaks MagicOnion into gRPC is in |
Def interested in this as well. Going to be playing around with MagicOnion later and specifically looking at the gRPC aspect. Also going to see what it would take to transform the generated client code into something IL2CPP conforming (maybe a script that runs it through some regex to fix it up - like a codemod). |
I would like to get a Unity-grpc plugin work too. Could you provide us more info about your work, like how you compile .a file for iOS, then we can all contribute to this. |
+1 for separation of just gRPC client code. Cannot see any alternative for doing gRPC/HTTP2 in Unity (Especially when I need to stick to 4.x for now) 😨 Anyone was actually able to successfully perform some gRPC unary/server-side streaming call from unity using this package against properly "protobuf-generated" gRPC server? Could you guys show some example code, on how to do it? Not much details on that in this repo (: @Rurouni seems you were able to do it. Thanks in advance, and especially @neuecc for bringing this. |
@Bplotka I don't think it will work agains proto generated gRPC server, but you can use it with ServerServiceDefinition and manually adding methods with whatever serialisation and building server (check what code grpc proto plugin does generate). To make stuff easier I am using single bidirectional streaming method with byte[]->byte[] signature and doing my own protobuf serialisation and dispatch into some handler. |
So actually I managed to set it up against proto generated gRPC server with complex protobufs in requests and response.. 👍 Both unary and server streaming. I can explain how I did this briefly later. |
@Bplotka, I'm starting to look at using this to connect Unity to a gRPC server with proto request and responses already defined. It seems you are 18 days ahead of me. :) Any advice on setting it up before I dive in? |
@hubbaba Sure, what OS you want to run Unity on? I managed to get Unity working as a gRPC client on Windows (I have gRPC microservices on Linux in separate cloud). I can put more details during weekend. |
@Bplotka Thanks! and no rush. I really appreciate the help and I'll bet other people do as well. Windows works for me. The server is on linux (nodejs). |
@hubbaba, All: I have created this repo https://github.com/Bplotka/unity-grpc with separated gRPC library, Tutorial and examples, to cover all the steps and problems I ran into while chasing Unity + gRPC. Hope it will be helpful for all of you guys (: Let me know if you have any more questions. Thanks @neuecc for the gRPC lib, I think it unblocked us all...! |
@Bplotka Thank you for the gRPC library stand-alone! However I'm having some problems with manual code creation. Can you provide me assistance on that matter? P.S. - I explained in more detail my problem in the standalone repository. |
I responded to your question in the bwplotka/unity-grpc#1 |
Thanks @Bplotka !! I'll check it out this weekend and let you know how it goes. Thank you so much! |
Currently gRPC supports Unity and build binary is officialy released(beta). |
Hi,
I was wondering if you can separate "gRPC for unity" part from MagicOnion as standalone github project. There is definitely a need for strong client side gRPC library for unity and yours is the only one that I've found.
I was planning to use only gRPC part so if it was standalone I would be able to contribute pull requests with potential bugfixes or help with upgrading to 1.1 etc
In any way thank you for lots of great high quality libraries around unity and dotnet core 👍
The text was updated successfully, but these errors were encountered: