Skip to content
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

Protobuf as payload #86

Open
ipadavic opened this issue Oct 14, 2016 · 6 comments
Open

Protobuf as payload #86

ipadavic opened this issue Oct 14, 2016 · 6 comments
Assignees

Comments

@ipadavic
Copy link
Contributor

Hi,

I'm trying to use Protocol Buffers as payload. Having golang server and client works fine, but when using same golang server and php client, protobuf is not decoded properly.

Can this lib be used with protobuffs? I see that @byrnedo commented something about protobuf in PR #61 .

Thanks.

@byrnedo
Copy link
Contributor

byrnedo commented Oct 14, 2016

Hi,
I'm using https://github.com/drslump/Protobuf-PHP and using it's decode to read the message payloads. Has been working fine for me.

@repejota
Copy link
Owner

Thanks! Going to take a look ASAP. 👍

@repejota repejota self-assigned this Oct 14, 2016
@ipadavic
Copy link
Contributor Author

Great, I'll try this. I'm using https://github.com/protobuf-php/protobuf and was unable to connect this via phpnats. Will let you know if drslump fixed this.

@ipadavic
Copy link
Contributor Author

Heh drslump/Protobuf-PHP generated code is not nearly PSR friendly :(

@ipadavic
Copy link
Contributor Author

Sorry for trolling :/. Had some bug on client side. It seems everything works just fine even with https://github.com/protobuf-php/protobuf. So you can probably close this issue.

@byrnedo
Copy link
Contributor

byrnedo commented Oct 15, 2016

I must try protobuf-php/protobuf, I gave up before and drslump just ended up working. Yeah, I had to tweak some stuff to get the class loading to work :o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants