All data is encoded as JSON (Java Script Object Notation). JSON is a simple, text base format that is programming language independent.
WebSockets establishes persistent two-way connections between clients and servers. It's known for it's ease-of-use, flexibility and performance.