LeviLamina
Loading...
Searching...
No Matches
ScriptNativeWebSocket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/http/StatusCode.h"
7#include "mc/deps/core/http/WebSocket.h"
8
9namespace ScriptModuleMinecraftNet {
10
11class ScriptNativeWebSocket : public ::Bedrock::Http::WebSocket {
12public:
13 // ScriptNativeWebSocket inner types define
14 enum class ConnectionState : int {
15 Connecting = 0,
16 Open = 1,
17 Closed = 2,
18 };
19
20public:
21 // member variables
22 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ScriptNativeWebSocket& operator=(ScriptNativeWebSocket const&);
32 ScriptNativeWebSocket(ScriptNativeWebSocket const&);
33 ScriptNativeWebSocket();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~ScriptNativeWebSocket() /*override*/ = default;
39
40 virtual void onMessage(::std::string_view message) /*override*/;
41
42 virtual void onClose(uint) /*override*/;
43 // NOLINTEND
44
45public:
46 // virtual function thunks
47 // NOLINTBEGIN
48 MCNAPI void $onMessage(::std::string_view message);
49
50 MCNAPI void $onClose(uint);
51
52
53 // NOLINTEND
54};
55
56} // namespace ScriptModuleMinecraftNet
Definition WebSocket.h:18
MCAPI void $onMessage(::std::string_view message)
Definition Alias.h:14