mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
WebSocketOpCode: Add IsValid check
Not used, but useful addition.
This commit is contained in:
parent
fcbe11616d
commit
b66d2284b3
@ -121,4 +121,9 @@ namespace WebSocketOpCode {
|
||||
*/
|
||||
RequestBatchResponse = 9,
|
||||
};
|
||||
|
||||
inline bool IsValid(uint8_t opCode)
|
||||
{
|
||||
return opCode >= Hello && opCode <= RequestBatchResponse;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user