Skip to content

Commit 56b4724

Browse files
committed
Exposing set socket hostname (#433)
1 parent b1ea88f commit 56b4724

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Leanplum-SDK/Classes/Leanplum.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ extern NSString *const kEnvProduction;
188188
+ (void)setApiHostName:(NSString *)hostName withServletName:(NSString *)servletName usingSsl:(BOOL)ssl
189189
NS_SWIFT_NAME(setApiHostName(_:servletName:ssl:));
190190

191+
/**
192+
* Optional. Sets socket hostname and port
193+
* @param hostName The name of the socket host
194+
* @param port port of the socket
195+
*/
196+
+ (void)setSocketHostName:(NSString *)hostName withPortNumber:(int)port
197+
NS_SWIFT_NAME(setSocketHostName(_:port:));
198+
191199
/**
192200
* Optional. Adjusts the network timeouts.
193201
* The default timeout is 10 seconds for requests, and 15 seconds for file downloads.

0 commit comments

Comments
 (0)