encodeFrame

fun encodeFrame(frame: ClientFrame, id: String? = null): String

Serialises frame for the wire.