This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request = new HTTPRequest(new Uri("http://yourserver.com/"), (req, resp) => { … }); | |
request.Timeout = TimeSpan.FromSeconds(10); | |
request.Send(); | |
A more complete example: | |
string url = "http://besthttp.azurewebsites.net/api/LeaderboardTest?from=0&count=10"; | |
HTTPRequest request = new HTTPRequest(new Uri(url), (req, resp) => | |
{ | |
switch (req.State) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System; | |
using BestHTTP; | |
using BestHTTP.SocketIO; | |
public class SimpleChat : MonoBehaviour { | |
public UILabel lblChatMessages; |