質問

When doing RPC with autobahn, autobahn supports procedures returning python objects as long as they are json serializable. Some objects I'd like to return are not by default json serializable. I can easily write a custom encoder, but how would autobahn know it needs to use it?

役に立ちましたか?

解決

You can override _serialize and _unserialize on your factories. See here. Please note that this API is (currently) not promised to be stable.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top