codec library for chat application