so you can use json/binary for the same socket