| 110 | } |
| 111 | |
| 112 | Type type() const { |
| 113 | switch (_type) { |
| 114 | case 0: |
| 115 | return Type::PING; |
| 116 | case 1: |
| 117 | return Type::PONG; |
| 118 | default: |
| 119 | UNSTOPPABLE_ASSERT(false); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | template <class Ar> |
| 124 | void serialize(Ar& ar) { |
no outgoing calls