Skip to content

Instantly share code, notes, and snippets.

View heartgamer's full-sized avatar

Max Choi heartgamer

  • Stratosphere Games GmbH
  • Berlin
View GitHub Profile
@heartgamer
heartgamer / besthttp_state_handling_example.cs
Last active November 11, 2018 08:08
BestHTTP에서 timeout을 포함한 예외 핸들링 예시
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)
@heartgamer
heartgamer / SimpleChat.cs
Created November 19, 2015 05:21
BEST HTTP socket.io example.
using UnityEngine;
using System.Collections;
using System;
using BestHTTP;
using BestHTTP.SocketIO;
public class SimpleChat : MonoBehaviour {
public UILabel lblChatMessages;