pub type ReadyData { ReadyData( v: Int, user: user.User, session_id: String, resume_gateway_url: String, ) }
ReadyData( v: Int, user: user.User, session_id: String, resume_gateway_url: String, )
pub type ReadyPacket { ReadyPacket(t: String, s: Int, op: Int, d: ReadyData) }
ReadyPacket(t: String, s: Int, op: Int, d: ReadyData)
pub fn string_to_data( encoded: String, ) -> Result(ReadyPacket, json.DecodeError)