encode

fun encode(json: Json, event: CognigyEvent): SocketIoPacket