- create a
smith
basednet/rpc
codec. simulate the following two apis- codec.MsgpackSpecRpc.ClientCodec -- done
- codec.MsgpackSpecRpc.ServerCodec
- pubsub in go-smith
net/rpc
doesn't cover this. It's required to create a server to receive calls.
- encoding/transportation conversion
- encoding:
- json/msgpack gateway.
- transportation
- smith/sockjs gateway.
- encoding:
- bring this implementation to
sockjs
-->sockjs
with callback support- can
sockjs
used as transportation ofnet/rpc
?
Last active
August 29, 2015 14:05
-
-
Save changtimwu/972e1a5a6056267763bb to your computer and use it in GitHub Desktop.
rpc todo jobs
In smith
, a specific seq ID 9999
is chosen to represent event message published from server.
Go's RPC client can't catch this since it's a unsolicited message. That's means its a response without previous correspondent request.
no easy way to archive pubsub.
- Bidirectional RPC: http://rogpeppe.wordpress.com/2011/02/10/bidirectional-rpc-with-netchan/
- Is simulating
Publish
by making RPC Call a good idea? - RPC Server's semantics doesn't match a subscriber's behavior. A subscriber seldom returns value.
- Is simulating
- Stream Tap -- done
- ugly hack
- it works.
an user's comment about using sockjs with martini. https://groups.google.com/forum/#!topic/martini-go/MD7IoaDqQ5g
Beego has official example on how to integrate with sockjs
https://github.com/astaxie/beego/issues/20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this looks interesting http://www.gorillatoolkit.org/pkg/rpc but how to support pubsub?