Skip to content

Commit a8d593d

Browse files
committed
Fix #238 by making Construct Json Req non-pure
Constructing a request should happen before other calls, made non-pure. Should make #238 cases less common.
1 parent 8bd072f commit a8d593d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SocketIOClient.uplugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"FileVersion": 3,
33
"Version": 1,
4-
"VersionName": "1.5.0",
4+
"VersionName": "1.5.1",
55
"EngineVersion" : "4.26.0",
66
"FriendlyName": "Socket.IO Client",
77
"Description": "Real-time networking library Socket.IO Client usable from blueprints and c++.",

Source/SIOJson/Public/SIOJRequestJSON.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ class SIOJSON_API USIOJRequestJSON : public UObject
9393
// Construction
9494

9595
/** Creates new request (totally empty) */
96-
UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Request (Empty)", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"), Category = "SIOJ|Request")
96+
UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request (Empty)", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"), Category = "SIOJ|Request")
9797
static USIOJRequestJSON* ConstructRequest(UObject* WorldContextObject);
9898

9999
/** Creates new request with defined verb and content type */
100-
UFUNCTION(BlueprintPure, meta = (DisplayName = "Construct Json Request", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"), Category = "SIOJ|Request")
100+
UFUNCTION(BlueprintCallable, meta = (DisplayName = "Construct Json Request", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"), Category = "SIOJ|Request")
101101
static USIOJRequestJSON* ConstructRequestExt(UObject* WorldContextObject, ESIORequestVerb Verb, ESIORequestContentType ContentType);
102102

103103
/** Set verb to the request */

0 commit comments

Comments
 (0)