Added support for extensions that only manipulate application data.
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
index 51a6b44..ee20327 100644
--- a/lib/libwebsockets.c
+++ b/lib/libwebsockets.c
@@ -3201,6 +3201,12 @@
 	return wsi->final;
 }
 
+unsigned char
+libwebsocket_get_reserved_bits(struct libwebsocket *wsi)
+{
+	return wsi->rsv;
+}
+
 void *
 libwebsocket_ensure_user_space(struct libwebsocket *wsi)
 {