types of frames (modelled on web sockets)
data type for sock connection