[lua] Match WebSocketMessageType constants with the style of all other constants

This commit is contained in:
David Capello 2021-10-19 11:15:00 -03:00
parent 5c30315611
commit 5d04eb5a2e

View File

@ -238,14 +238,14 @@ void register_websocket_class(lua_State* L)
lua_newtable(L);
lua_pushvalue(L, -1);
lua_setglobal(L, "WebSocketMessageType");
setfield_integer(L, "Text", (int)ix::WebSocketMessageType::Message);
setfield_integer(L, "Binary", MESSAGE_TYPE_BINARY);
setfield_integer(L, "Open", (int)ix::WebSocketMessageType::Open);
setfield_integer(L, "Close", (int)ix::WebSocketMessageType::Close);
setfield_integer(L, "Error", (int)ix::WebSocketMessageType::Error);
setfield_integer(L, "Ping", (int)ix::WebSocketMessageType::Ping);
setfield_integer(L, "Pong", (int)ix::WebSocketMessageType::Pong);
setfield_integer(L, "Fragment", (int)ix::WebSocketMessageType::Fragment);
setfield_integer(L, "TEXT", (int)ix::WebSocketMessageType::Message);
setfield_integer(L, "BINARY", MESSAGE_TYPE_BINARY);
setfield_integer(L, "OPEN", (int)ix::WebSocketMessageType::Open);
setfield_integer(L, "CLOSE", (int)ix::WebSocketMessageType::Close);
setfield_integer(L, "ERROR", (int)ix::WebSocketMessageType::Error);
setfield_integer(L, "PING", (int)ix::WebSocketMessageType::Ping);
setfield_integer(L, "PONG", (int)ix::WebSocketMessageType::Pong);
setfield_integer(L, "FRAGMENT", (int)ix::WebSocketMessageType::Fragment);
lua_pop(L, 1);
}