Serialization in Photon

This page is not relevant for the JavaScript SDKs since they use JSON serialization and not the binary protocol. This makes the JavaScript SDKs have limited data types, at least compared to the other SDKs. Consider this especially if you want clients built with the JavaScript SDK to communicate with clients built with other SDKs.

Photon and its clients are using a highly optimized binary protocol to communicate. It's compact, yet easy to parse.

Photon must convert all data into this binary protocol before it can be sent. This is done automatically for a range of commonly used data types. On most client APIs, you can also register your custom serialization methods for other classes you might need. See below.


To Document Top