Serialize the frame into a byte list.
@override Uint8List toBytes() { return Uint8List.fromList([FrameType.ping.index]); }