initialize new protocol_state for websockets