mirror of
https://github.com/recroom2016/OpenRec.git
synced 2026-04-22 13:25:51 +00:00
new build
This commit is contained in:
17
APIServer.cs
17
APIServer.cs
@@ -18,7 +18,7 @@ namespace server
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Console.WriteLine("APIServer.cs has started.");
|
Console.WriteLine("[APIServer.cs] has started.");
|
||||||
new Thread(new ThreadStart(this.StartListen)).Start();
|
new Thread(new ThreadStart(this.StartListen)).Start();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -302,7 +302,7 @@ namespace server
|
|||||||
}
|
}
|
||||||
if (rawUrl == "//api/sanitize/v1/isPure")
|
if (rawUrl == "//api/sanitize/v1/isPure")
|
||||||
{
|
{
|
||||||
s = JsonConvert.SerializeObject(Sanitize.GetSanitize());
|
s = "{\"IsPure\":true}";
|
||||||
}
|
}
|
||||||
Console.WriteLine("API Response: " + s);
|
Console.WriteLine("API Response: " + s);
|
||||||
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
||||||
@@ -319,7 +319,7 @@ namespace server
|
|||||||
for (; ; )
|
for (; ; )
|
||||||
{
|
{
|
||||||
this.listener.Start();
|
this.listener.Start();
|
||||||
Console.WriteLine("APIServer.cs is listening.");
|
Console.WriteLine("[APIServer.cs] is listening.");
|
||||||
HttpListenerContext context = this.listener.GetContext();
|
HttpListenerContext context = this.listener.GetContext();
|
||||||
HttpListenerRequest request = context.Request;
|
HttpListenerRequest request = context.Request;
|
||||||
HttpListenerResponse response = context.Response;
|
HttpListenerResponse response = context.Response;
|
||||||
@@ -506,9 +506,9 @@ namespace server
|
|||||||
s = BlankResponse;
|
s = BlankResponse;
|
||||||
}
|
}
|
||||||
if (Url == "storefronts/v1/allGiftDrops/2")
|
if (Url == "storefronts/v1/allGiftDrops/2")
|
||||||
{
|
{
|
||||||
s = BracketResponse;
|
s = BracketResponse;
|
||||||
}
|
}
|
||||||
if (Url == "objectives/v1/myprogress")
|
if (Url == "objectives/v1/myprogress")
|
||||||
{
|
{
|
||||||
s = JsonConvert.SerializeObject(new Objective2018());
|
s = JsonConvert.SerializeObject(new Objective2018());
|
||||||
@@ -546,7 +546,7 @@ namespace server
|
|||||||
s = Activities.Charades.words();
|
s = Activities.Charades.words();
|
||||||
}
|
}
|
||||||
if (Url == "gamesessions/v2/joinrandom")
|
if (Url == "gamesessions/v2/joinrandom")
|
||||||
{
|
{
|
||||||
s = gamesesh.GameSessions.JoinRandom(text);
|
s = gamesesh.GameSessions.JoinRandom(text);
|
||||||
}
|
}
|
||||||
if (Url == "gamesessions/v2/create")
|
if (Url == "gamesessions/v2/create")
|
||||||
@@ -585,7 +585,7 @@ namespace server
|
|||||||
{
|
{
|
||||||
s = BracketResponse; //JsonConvert.SerializeObject(c000099.m00000a(text));
|
s = BracketResponse; //JsonConvert.SerializeObject(c000099.m00000a(text));
|
||||||
}
|
}
|
||||||
if (Url.StartsWith("rooms/v2/saveData"))
|
if (Url.StartsWith("!rooms/v2/saveData"))
|
||||||
{
|
{
|
||||||
string text26 = "5GDNL91ZY43PXN2YJENTBL";
|
string text26 = "5GDNL91ZY43PXN2YJENTBL";
|
||||||
string path = c000004.m000007() + c000041.f000043.Room.Name;
|
string path = c000004.m000007() + c000041.f000043.Room.Name;
|
||||||
@@ -623,9 +623,10 @@ namespace server
|
|||||||
response.ContentLength64 = (long)bytes.Length;
|
response.ContentLength64 = (long)bytes.Length;
|
||||||
Stream outputStream = response.OutputStream;
|
Stream outputStream = response.OutputStream;
|
||||||
outputStream.Write(bytes, 0, bytes.Length);
|
outputStream.Write(bytes, 0, bytes.Length);
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(1);
|
||||||
outputStream.Close();
|
outputStream.Close();
|
||||||
this.listener.Stop();
|
this.listener.Stop();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
177
Consumable.cs
Normal file
177
Consumable.cs
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace api
|
||||||
|
{
|
||||||
|
class Consumable
|
||||||
|
{
|
||||||
|
|
||||||
|
// Token: 0x040001E4 RID: 484
|
||||||
|
public static List<Consumable.c00009f> f000026;
|
||||||
|
|
||||||
|
// Token: 0x0200009F RID: 159
|
||||||
|
public class c00009f
|
||||||
|
{
|
||||||
|
// Token: 0x1700010B RID: 267
|
||||||
|
// (get) Token: 0x06000376 RID: 886
|
||||||
|
// (set) Token: 0x06000377 RID: 887
|
||||||
|
public long Id
|
||||||
|
{
|
||||||
|
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.f00002c;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.f00002c = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Token: 0x1700010C RID: 268
|
||||||
|
// (get) Token: 0x06000378 RID: 888
|
||||||
|
// (set) Token: 0x06000379 RID: 889
|
||||||
|
public string ConsumableItemDesc
|
||||||
|
{
|
||||||
|
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.f000002;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.f000002 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Token: 0x1700010D RID: 269
|
||||||
|
// (get) Token: 0x0600037A RID: 890
|
||||||
|
// (set) Token: 0x0600037B RID: 891
|
||||||
|
public DateTime CreatedAt
|
||||||
|
{
|
||||||
|
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.f00003a;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.f00003a = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Token: 0x1700010E RID: 270
|
||||||
|
// (get) Token: 0x0600037C RID: 892
|
||||||
|
// (set) Token: 0x0600037D RID: 893
|
||||||
|
public int Count
|
||||||
|
{
|
||||||
|
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.f000004;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.f000004 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Token: 0x1700010F RID: 271
|
||||||
|
// (get) Token: 0x0600037E RID: 894
|
||||||
|
// (set) Token: 0x0600037F RID: 895
|
||||||
|
public int InitialCount
|
||||||
|
{
|
||||||
|
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.f000005;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.f000005 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Token: 0x17000110 RID: 272
|
||||||
|
// (get) Token: 0x06000380 RID: 896
|
||||||
|
// (set) Token: 0x06000381 RID: 897
|
||||||
|
public int UnlockedLevel
|
||||||
|
{
|
||||||
|
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.f000006;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.f000006 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Token: 0x17000111 RID: 273
|
||||||
|
// (get) Token: 0x06000382 RID: 898
|
||||||
|
// (set) Token: 0x06000383 RID: 899
|
||||||
|
public bool IsActive
|
||||||
|
{
|
||||||
|
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.f000016;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.f000016 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Token: 0x17000112 RID: 274
|
||||||
|
// (get) Token: 0x06000384 RID: 900
|
||||||
|
// (set) Token: 0x06000385 RID: 901
|
||||||
|
public int? ActiveDurationMinutes
|
||||||
|
{
|
||||||
|
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.f000081;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.f000081 = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Token: 0x040001E6 RID: 486
|
||||||
|
private long f00002c;
|
||||||
|
|
||||||
|
// Token: 0x040001E7 RID: 487
|
||||||
|
private string f000002;
|
||||||
|
|
||||||
|
// Token: 0x040001E8 RID: 488
|
||||||
|
private DateTime f00003a;
|
||||||
|
|
||||||
|
// Token: 0x040001E9 RID: 489
|
||||||
|
private int f000004;
|
||||||
|
|
||||||
|
// Token: 0x040001EA RID: 490
|
||||||
|
private int f000005;
|
||||||
|
|
||||||
|
// Token: 0x040001EB RID: 491
|
||||||
|
private int f000006;
|
||||||
|
|
||||||
|
// Token: 0x040001EC RID: 492
|
||||||
|
private bool f000016;
|
||||||
|
|
||||||
|
// Token: 0x040001ED RID: 493
|
||||||
|
private int? f000081;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,24 +6,27 @@ using Newtonsoft.Json;
|
|||||||
using vaultgamesesh;
|
using vaultgamesesh;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using server;
|
using server;
|
||||||
|
using api;
|
||||||
|
|
||||||
namespace api
|
namespace api
|
||||||
{
|
{
|
||||||
class CustomRooms
|
class CustomRooms
|
||||||
{
|
{
|
||||||
public static void RoomDecode(string roomname, string roomsceneid, string imagename, string datablob)
|
public static void RoomDecode(string text)
|
||||||
{
|
{
|
||||||
File.WriteAllText("SaveData\\Rooms\\Downloaded\\roomname.txt", roomname);
|
ModernRooms.Root root2 = JsonConvert.DeserializeObject<ModernRooms.Root>(text);
|
||||||
File.WriteAllText("SaveData\\Rooms\\Downloaded\\datablob.txt", datablob);
|
File.WriteAllText("SaveData\\Rooms\\Downloaded\\roomname.txt", root2.Name);
|
||||||
File.WriteAllText("SaveData\\Rooms\\Downloaded\\roomsceneid.txt", roomsceneid);
|
File.WriteAllText("SaveData\\Rooms\\Downloaded\\roomid.txt", Convert.ToString(root2.RoomId));
|
||||||
File.WriteAllText("SaveData\\Rooms\\Downloaded\\imagename.txt", imagename);
|
File.WriteAllText("SaveData\\Rooms\\Downloaded\\datablob.txt", root2.SubRooms[0].DataBlob);
|
||||||
|
File.WriteAllText("SaveData\\Rooms\\Downloaded\\roomsceneid.txt", root2.SubRooms[0].UnitySceneId);
|
||||||
|
File.WriteAllText("SaveData\\Rooms\\Downloaded\\imagename.txt", root2.ImageName);
|
||||||
ulong rand = Convert.ToUInt64(new Random().Next(0, 99));
|
ulong rand = Convert.ToUInt64(new Random().Next(0, 99));
|
||||||
room = new Room
|
room = new Room
|
||||||
{
|
{
|
||||||
RoomId = rand,
|
RoomId = root2.RoomId,
|
||||||
Name = roomname,
|
Name = root2.Name,
|
||||||
Description = "OpenRec Downloaded Room",
|
Description = "OpenRec Downloaded Room",
|
||||||
ImageName = imagename,
|
ImageName = root2.ImageName,
|
||||||
CreatorPlayerId = APIServer.CachedPlayerID,
|
CreatorPlayerId = APIServer.CachedPlayerID,
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
@@ -42,14 +45,14 @@ namespace api
|
|||||||
new Scene()
|
new Scene()
|
||||||
{
|
{
|
||||||
RoomSceneId = 1,
|
RoomSceneId = 1,
|
||||||
RoomId = rand,
|
RoomId = root2.RoomId,
|
||||||
RoomSceneLocationId = "a75f7547-79eb-47c6-8986-6767abcb4f92",
|
RoomSceneLocationId = root2.SubRooms[0].UnitySceneId,
|
||||||
Name = "Home",
|
Name = "Home",
|
||||||
IsSandbox = true,
|
IsSandbox = true,
|
||||||
DataBlobName = datablob,
|
DataBlobName = root2.SubRooms[0].DataBlob,
|
||||||
MaxPlayers = 20,
|
MaxPlayers = 20,
|
||||||
CanMatchmakeInto = true,
|
CanMatchmakeInto = true,
|
||||||
DataModifiedAt = DateTime.Now,
|
DataModifiedAt = root2.SubRooms[0].DataSavedAt,
|
||||||
ReplicationId = null,
|
ReplicationId = null,
|
||||||
UseLevelBasedMatchmaking = false,
|
UseLevelBasedMatchmaking = false,
|
||||||
UseAgeBasedMatchmaking = false,
|
UseAgeBasedMatchmaking = false,
|
||||||
@@ -66,9 +69,9 @@ namespace api
|
|||||||
InvitedCoOwners = new List<ulong>(),
|
InvitedCoOwners = new List<ulong>(),
|
||||||
Hosts = new List<ulong>(),
|
Hosts = new List<ulong>(),
|
||||||
InvitedHosts = new List<ulong>(),
|
InvitedHosts = new List<ulong>(),
|
||||||
CheerCount = 999,
|
CheerCount = root2.Stats.CheerCount,
|
||||||
FavoriteCount = 999,
|
FavoriteCount = root2.Stats.FavoriteCount,
|
||||||
VisitCount = 999,
|
VisitCount = root2.Stats.VisitCount,
|
||||||
Tags = new List<aTag>
|
Tags = new List<aTag>
|
||||||
{
|
{
|
||||||
new aTag()
|
new aTag()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace server
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Console.WriteLine("ImageServer.cs has started.");
|
Console.WriteLine("[ImageServer.cs] has started.");
|
||||||
new Thread(new ThreadStart(this.StartListen)).Start();
|
new Thread(new ThreadStart(this.StartListen)).Start();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -30,23 +30,54 @@ namespace server
|
|||||||
this.listener.Prefixes.Add("http://localhost:20182/");
|
this.listener.Prefixes.Add("http://localhost:20182/");
|
||||||
for (; ; )
|
for (; ; )
|
||||||
{
|
{
|
||||||
//image server always send out profile image for now, might cause issues later but ill fix it when I need too
|
|
||||||
this.listener.Start();
|
this.listener.Start();
|
||||||
Console.WriteLine("ImageServer.cs is listening.");
|
Console.WriteLine("{ImageServer.cs] is listening.");
|
||||||
HttpListenerContext context = this.listener.GetContext();
|
HttpListenerContext context = this.listener.GetContext();
|
||||||
HttpListenerRequest request = context.Request;
|
HttpListenerRequest request = context.Request;
|
||||||
HttpListenerResponse response = context.Response;
|
HttpListenerResponse response = context.Response;
|
||||||
string rawUrl = request.RawUrl;
|
string rawUrl = request.RawUrl;
|
||||||
string text;
|
string text;
|
||||||
byte[] i = File.ReadAllBytes("SaveData\\profileimage.png");
|
byte[] i = File.ReadAllBytes("SaveData\\profileimage.png"); //File.ReadAllBytes("SaveData\\profileimage.png");
|
||||||
using (StreamReader streamReader = new StreamReader(request.InputStream, request.ContentEncoding))
|
using (StreamReader streamReader = new StreamReader(request.InputStream, request.ContentEncoding))
|
||||||
{
|
{
|
||||||
text = streamReader.ReadToEnd();
|
text = streamReader.ReadToEnd();
|
||||||
}
|
}
|
||||||
if (rawUrl.StartsWith("//room/"))
|
if (rawUrl.StartsWith("/alt/"))
|
||||||
{
|
{
|
||||||
i = new WebClient().DownloadData("https://cdn.rec.net/" + rawUrl.Remove(0, 2));
|
i = File.ReadAllBytes("SaveData\\profileimage.png");
|
||||||
|
}
|
||||||
|
else if (rawUrl.StartsWith("/" + File.ReadAllText("SaveData\\Profile\\username.txt")))
|
||||||
|
{
|
||||||
|
i = File.ReadAllBytes("SaveData\\profileimage.png");
|
||||||
|
}
|
||||||
|
else if (rawUrl.StartsWith("//room/"))
|
||||||
|
{
|
||||||
|
i = new WebClient().DownloadData("https://cdn.rec.net" + rawUrl.Remove(0, 1));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
i = new WebClient().DownloadData("https://img.rec.net" + rawUrl);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Console.WriteLine("[ImageServer.cs] Image not found on img.rec.net.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rawUrl.StartsWith("/CustomRoom.png"))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
i = new WebClient().DownloadData("https://img.rec.net/" + File.ReadAllText("SaveData\\Rooms\\Downloaded\\imagename.txt"));
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Console.WriteLine("[ImageServer.cs] Image not found on img.rec.net.");
|
||||||
|
i = new WebClient().DownloadData("https://img.rec.net/DefaultRoomImage.jpg");
|
||||||
|
}
|
||||||
|
}
|
||||||
Console.WriteLine("Image Requested: " + rawUrl);
|
Console.WriteLine("Image Requested: " + rawUrl);
|
||||||
Console.WriteLine("Image Data: " + text);
|
Console.WriteLine("Image Data: " + text);
|
||||||
Console.WriteLine("Image Response: ");
|
Console.WriteLine("Image Response: ");
|
||||||
@@ -54,7 +85,7 @@ namespace server
|
|||||||
response.ContentLength64 = (long)bytes.Length;
|
response.ContentLength64 = (long)bytes.Length;
|
||||||
Stream outputStream = response.OutputStream;
|
Stream outputStream = response.OutputStream;
|
||||||
outputStream.Write(bytes, 0, bytes.Length);
|
outputStream.Write(bytes, 0, bytes.Length);
|
||||||
Thread.Sleep(400);
|
Thread.Sleep(1);
|
||||||
outputStream.Close();
|
outputStream.Close();
|
||||||
this.listener.Stop();
|
this.listener.Stop();
|
||||||
}
|
}
|
||||||
|
|||||||
71
ModernRooms.cs
Normal file
71
ModernRooms.cs
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace api
|
||||||
|
{
|
||||||
|
class ModernRooms
|
||||||
|
{
|
||||||
|
public class Stats
|
||||||
|
{
|
||||||
|
public int CheerCount { get; set; }
|
||||||
|
public int FavoriteCount { get; set; }
|
||||||
|
public int VisitorCount { get; set; }
|
||||||
|
public int VisitCount { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class SubRoom
|
||||||
|
{
|
||||||
|
public int SubRoomId { get; set; }
|
||||||
|
public ulong RoomId { get; set; }
|
||||||
|
public string UnitySceneId { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string DataBlob { get; set; }
|
||||||
|
public DateTime DataSavedAt { get; set; }
|
||||||
|
public bool IsSandbox { get; set; }
|
||||||
|
public int MaxPlayers { get; set; }
|
||||||
|
public int Accessibility { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Root
|
||||||
|
{
|
||||||
|
public ulong RoomId { get; set; }
|
||||||
|
public bool IsDorm { get; set; }
|
||||||
|
public int MaxPlayerCalculationMode { get; set; }
|
||||||
|
public int MaxPlayers { get; set; }
|
||||||
|
public bool CloningAllowed { get; set; }
|
||||||
|
public bool DisableMicAutoMute { get; set; }
|
||||||
|
public bool DisableRoomComments { get; set; }
|
||||||
|
public bool EncryptVoiceChat { get; set; }
|
||||||
|
public bool LoadScreenLocked { get; set; }
|
||||||
|
public int Version { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
public string ImageName { get; set; }
|
||||||
|
public int WarningMask { get; set; }
|
||||||
|
public object CustomWarning { get; set; }
|
||||||
|
public int CreatorAccountId { get; set; }
|
||||||
|
public int State { get; set; }
|
||||||
|
public int Accessibility { get; set; }
|
||||||
|
public bool SupportsLevelVoting { get; set; }
|
||||||
|
public bool IsRRO { get; set; }
|
||||||
|
public bool SupportsScreens { get; set; }
|
||||||
|
public bool SupportsWalkVR { get; set; }
|
||||||
|
public bool SupportsTeleportVR { get; set; }
|
||||||
|
public bool SupportsVRLow { get; set; }
|
||||||
|
public bool SupportsQuest2 { get; set; }
|
||||||
|
public bool SupportsMobile { get; set; }
|
||||||
|
public bool SupportsJuniors { get; set; }
|
||||||
|
public int MinLevel { get; set; }
|
||||||
|
public DateTime CreatedAt { get; set; }
|
||||||
|
public Stats Stats { get; set; }
|
||||||
|
public List<SubRoom> SubRooms { get; set; }
|
||||||
|
public List<object> Tags { get; set; }
|
||||||
|
public List<object> PromoImages { get; set; }
|
||||||
|
public List<object> PromoExternalContent { get; set; }
|
||||||
|
public List<object> LoadScreens { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@ namespace server
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Console.WriteLine("NameServer.cs has started.");
|
Console.WriteLine("[NameServer.cs] has started.");
|
||||||
new Thread(new ThreadStart(this.StartListen)).Start();
|
new Thread(new ThreadStart(this.StartListen)).Start();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -32,19 +32,26 @@ namespace server
|
|||||||
for (; ; )
|
for (; ; )
|
||||||
{
|
{
|
||||||
this.listener.Start();
|
this.listener.Start();
|
||||||
Console.WriteLine("NameServer.cs is listening.");
|
Console.WriteLine("[NameServer.cs] is listening.");
|
||||||
HttpListenerContext context = this.listener.GetContext();
|
HttpListenerContext context = this.listener.GetContext();
|
||||||
HttpListenerRequest request = context.Request;
|
HttpListenerRequest request = context.Request;
|
||||||
HttpListenerResponse response = context.Response;
|
HttpListenerResponse response = context.Response;
|
||||||
string rawUrl = request.RawUrl;
|
string rawUrl = request.RawUrl;
|
||||||
string s = "";
|
string s = "";
|
||||||
s = "{\"API\":\"http://localhost:2018\",\"Notifications\":\"http://localhost:20161\",\"Images\":\"http://localhost:20182\"}";
|
if (start.Program.version == "2019")
|
||||||
|
{
|
||||||
|
s = "{\"API\":\"http://localhost:2019\",\"Notifications\":\"ws://localhost:20161\",\"Images\":\"http://localhost:20182\",\"Auth\":\"http://localhost:20182\",\"WWW\":\"http://localhost:20182\"}";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
s = "{\"API\":\"http://localhost:2018\",\"Notifications\":\"http://localhost:20161\",\"Images\":\"http://localhost:20182\"}";
|
||||||
|
}
|
||||||
Console.WriteLine("API Response: " + s);
|
Console.WriteLine("API Response: " + s);
|
||||||
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
||||||
response.ContentLength64 = (long)bytes.Length;
|
response.ContentLength64 = (long)bytes.Length;
|
||||||
Stream outputStream = response.OutputStream;
|
Stream outputStream = response.OutputStream;
|
||||||
outputStream.Write(bytes, 0, bytes.Length);
|
outputStream.Write(bytes, 0, bytes.Length);
|
||||||
Thread.Sleep(400);
|
Thread.Sleep(1);
|
||||||
outputStream.Close();
|
outputStream.Close();
|
||||||
this.listener.Stop();
|
this.listener.Stop();
|
||||||
}
|
}
|
||||||
|
|||||||
16
Program.cs
16
Program.cs
@@ -205,24 +205,16 @@ namespace start
|
|||||||
Console.Clear();
|
Console.Clear();
|
||||||
Console.WriteLine("Please type in the name of the room you would like to download: (Case sensitive)");
|
Console.WriteLine("Please type in the name of the room you would like to download: (Case sensitive)");
|
||||||
string roomname = Console.ReadLine();
|
string roomname = Console.ReadLine();
|
||||||
Console.WriteLine("Now, please go to the link below and help us gather info about your room for you.");
|
string text = new WebClient().DownloadString("https://rooms.rec.net/rooms?name=" + roomname + "&include=297");
|
||||||
Console.WriteLine("https://rooms.rec.net/rooms?name=" + roomname + "&include=297");
|
CustomRooms.RoomDecode(text);
|
||||||
Console.WriteLine("Please find the string called ImageName and paste it below:");
|
Console.Clear();
|
||||||
string imagename = Console.ReadLine();
|
Console.WriteLine("Success!");
|
||||||
Console.WriteLine("Please find the string called UnitySceneId and paste it below:");
|
|
||||||
string roomsceneid = Console.ReadLine();
|
|
||||||
Console.WriteLine("Please find the string called DataBlob and paste it below:");
|
|
||||||
string datablob = Console.ReadLine();
|
|
||||||
CustomRooms.RoomDecode(roomname, roomsceneid, imagename, datablob);
|
|
||||||
goto Start;
|
goto Start;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (readline == "5")
|
if (readline == "5")
|
||||||
{
|
{
|
||||||
Console.Title = "OpenRec Version Select";
|
Console.Title = "OpenRec Version Select";
|
||||||
Console.WriteLine("Please select the version of RecRoom the server should host: (2016, 2017, 2018)");
|
Console.WriteLine("Please select the version of RecRoom the server should host: (2016, 2017, 2018)");
|
||||||
Console.WriteLine("fuck you all");
|
|
||||||
//imagine if yall actually look in the code one day and just find a random note signed tucker at the bottom of it and then i go missing for a very long time otherwise known as forever
|
|
||||||
string readline2 = Console.ReadLine();
|
string readline2 = Console.ReadLine();
|
||||||
if (readline2 == "2016")
|
if (readline2 == "2016")
|
||||||
{
|
{
|
||||||
|
|||||||
3
Setup.cs
3
Setup.cs
@@ -12,10 +12,11 @@ namespace start
|
|||||||
{
|
{
|
||||||
//sets up all the important files so openrec doesnt crash like lame vaultserver xD
|
//sets up all the important files so openrec doesnt crash like lame vaultserver xD
|
||||||
Console.WriteLine("Setting up... (May take a minute to download everything.)");
|
Console.WriteLine("Setting up... (May take a minute to download everything.)");
|
||||||
Directory.CreateDirectory("SaveData\\Images\\");
|
|
||||||
Directory.CreateDirectory("SaveData\\App\\");
|
Directory.CreateDirectory("SaveData\\App\\");
|
||||||
Directory.CreateDirectory("SaveData\\Profile\\");
|
Directory.CreateDirectory("SaveData\\Profile\\");
|
||||||
|
Directory.CreateDirectory("SaveData\\Images\\");
|
||||||
Directory.CreateDirectory("SaveData\\Rooms\\");
|
Directory.CreateDirectory("SaveData\\Rooms\\");
|
||||||
|
Directory.CreateDirectory("SaveData\\Images\\");
|
||||||
Directory.CreateDirectory("SaveData\\Rooms\\Downloaded\\");
|
Directory.CreateDirectory("SaveData\\Rooms\\Downloaded\\");
|
||||||
if (!(File.Exists("SaveData\\avatar.txt")))
|
if (!(File.Exists("SaveData\\avatar.txt")))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ namespace vaultgamesesh
|
|||||||
ReleaseStatus = 2,
|
ReleaseStatus = 2,
|
||||||
ReplicationId = "DormRoom",
|
ReplicationId = "DormRoom",
|
||||||
CreatorPlayerId = APIServer.CachedPlayerID,
|
CreatorPlayerId = APIServer.CachedPlayerID,
|
||||||
ImageName = "Dorm.png",
|
ImageName = "DefaultRoomImage.jpg",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -399,7 +399,7 @@ namespace vaultgamesesh
|
|||||||
Name = "RecCenter",
|
Name = "RecCenter",
|
||||||
Description = "A social hub to meet and mingle with friends new and old.",
|
Description = "A social hub to meet and mingle with friends new and old.",
|
||||||
CreatorPlayerId = APIServer.CachedPlayerID,
|
CreatorPlayerId = APIServer.CachedPlayerID,
|
||||||
ImageName = "RecCenter.png",
|
ImageName = "22eefa3219f046fd9e2090814650ede3",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -455,7 +455,7 @@ namespace vaultgamesesh
|
|||||||
Name = "3DCharades",
|
Name = "3DCharades",
|
||||||
Description = "Take turns drawing, acting, and guessing funny phrases with your friends!",
|
Description = "Take turns drawing, acting, and guessing funny phrases with your friends!",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "ActivityCharades.png",
|
ImageName = "a446d5808ed14401a27f53e631c31b93.png",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -505,7 +505,7 @@ namespace vaultgamesesh
|
|||||||
Name = "DiscGolfLake",
|
Name = "DiscGolfLake",
|
||||||
Description = "Throw your disc into the goal. Sounds easy, right?",
|
Description = "Throw your disc into the goal. Sounds easy, right?",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "DiscGolfLake.png",
|
ImageName = "52cf6c3271894ecd95fb0c9b2d2209a7",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -560,7 +560,7 @@ namespace vaultgamesesh
|
|||||||
Name = "DiscGolfPropulsion",
|
Name = "DiscGolfPropulsion",
|
||||||
Description = "Throw your disc through hazards and around wind machines on this challenging course!",
|
Description = "Throw your disc through hazards and around wind machines on this challenging course!",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "DiscGolfPropulsion.png",
|
ImageName = "fc9a1acc47514b64a30d199d5ccdeca9",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -615,7 +615,7 @@ namespace vaultgamesesh
|
|||||||
Name = "Dodgeball",
|
Name = "Dodgeball",
|
||||||
Description = "Throw dodgeballs to knock out your friends in this gym classic!",
|
Description = "Throw dodgeballs to knock out your friends in this gym classic!",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "Dodgeball.png",
|
ImageName = "6d5c494668784816bbc41d9b870e5003",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -670,7 +670,7 @@ namespace vaultgamesesh
|
|||||||
Name = "Paddleball",
|
Name = "Paddleball",
|
||||||
Description = "A simple rally game between two players in a plexiglass tube with a zero-g ball.",
|
Description = "A simple rally game between two players in a plexiglass tube with a zero-g ball.",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "ActivityPaddleball.png",
|
ImageName = "ffdca6ed8bd94631ac15e3e894acb6c6",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -725,7 +725,7 @@ namespace vaultgamesesh
|
|||||||
Name = "Paintball",
|
Name = "Paintball",
|
||||||
Description = "Red and Blue teams splat each other in capture the flag and team battle.",
|
Description = "Red and Blue teams splat each other in capture the flag and team battle.",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "Paintball.png",
|
ImageName = "93a53ced93a04f658795a87f4a4aab85",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = true,
|
SupportsLevelVoting = true,
|
||||||
@@ -828,7 +828,7 @@ namespace vaultgamesesh
|
|||||||
Name = "GoldenTrophy",
|
Name = "GoldenTrophy",
|
||||||
Description = "The goblin king stole Coach's Golden Trophy. Team up and embark on an epic quest to recover it!",
|
Description = "The goblin king stole Coach's Golden Trophy. Team up and embark on an epic quest to recover it!",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "Golden.png",
|
ImageName = "38e9d0d4eff94556a0b106508249dcf9",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -883,7 +883,7 @@ namespace vaultgamesesh
|
|||||||
Name = "TheRiseofJumbotron",
|
Name = "TheRiseofJumbotron",
|
||||||
Description = "Robot invaders threaten the galaxy! Team up with your friends and bring the laser heat!",
|
Description = "Robot invaders threaten the galaxy! Team up with your friends and bring the laser heat!",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "Jumbo.png",
|
ImageName = "51296f28105b48178708e389b6daf057",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -938,7 +938,7 @@ namespace vaultgamesesh
|
|||||||
Name = "CrimsonCauldron",
|
Name = "CrimsonCauldron",
|
||||||
Description = "Can your band of adventurers brave the enchanted wilds, and lift the curse of the crimson cauldron?",
|
Description = "Can your band of adventurers brave the enchanted wilds, and lift the curse of the crimson cauldron?",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "Crimson.png",
|
ImageName = "3ab82779dff94d11920ebf38df249395",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -993,7 +993,7 @@ namespace vaultgamesesh
|
|||||||
Name = "IsleOfLostSkulls",
|
Name = "IsleOfLostSkulls",
|
||||||
Description = "Can your pirate crew get to the Isle, defeat its fearsome guardian, and escape with the gold?",
|
Description = "Can your pirate crew get to the Isle, defeat its fearsome guardian, and escape with the gold?",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "Isle.png",
|
ImageName = "45ad53aa002646d0ab3eb509b9f260ef",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1048,7 +1048,7 @@ namespace vaultgamesesh
|
|||||||
Name = "Soccer",
|
Name = "Soccer",
|
||||||
Description = "Teams of three run around slamming themselves into an over-sized soccer ball. Goal!",
|
Description = "Teams of three run around slamming themselves into an over-sized soccer ball. Goal!",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "Soccer.png",
|
ImageName = "51c6f5ac5e6f4777b573e7e43f8a85ea",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1103,7 +1103,7 @@ namespace vaultgamesesh
|
|||||||
Name = "LaserTag",
|
Name = "LaserTag",
|
||||||
Description = "Teams battle each other and waves of robots.",
|
Description = "Teams battle each other and waves of robots.",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "LaserTag.png",
|
ImageName = "c5a72193d6904811b2d0195a6deb3125",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1170,7 +1170,7 @@ namespace vaultgamesesh
|
|||||||
Name = "RecRoyaleSquads",
|
Name = "RecRoyaleSquads",
|
||||||
Description = "Squads of three battle it out on Frontier Island. Last squad standing wins!",
|
Description = "Squads of three battle it out on Frontier Island. Last squad standing wins!",
|
||||||
CreatorPlayerId = APIServer.CachedPlayerID,
|
CreatorPlayerId = APIServer.CachedPlayerID,
|
||||||
ImageName = "ActivityRecRoyale.png",
|
ImageName = "69fc525056014e39a435c4d2fdf2b887",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1225,7 +1225,7 @@ namespace vaultgamesesh
|
|||||||
Name = "RecRoyaleSolos",
|
Name = "RecRoyaleSolos",
|
||||||
Description = "Battle it out on Frontier Island. Last person standing wins!",
|
Description = "Battle it out on Frontier Island. Last person standing wins!",
|
||||||
CreatorPlayerId = APIServer.CachedPlayerID,
|
CreatorPlayerId = APIServer.CachedPlayerID,
|
||||||
ImageName = "RecRoyale.png",
|
ImageName = "f9e112bb67fb430d979e5ad6c2c116d4",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1280,7 +1280,7 @@ namespace vaultgamesesh
|
|||||||
Name = "Lounge",
|
Name = "Lounge",
|
||||||
Description = "A low-key lounge to chill with your friends. Great for private parties!",
|
Description = "A low-key lounge to chill with your friends. Great for private parties!",
|
||||||
CreatorPlayerId = APIServer.CachedPlayerID,
|
CreatorPlayerId = APIServer.CachedPlayerID,
|
||||||
ImageName = "Lounge.png",
|
ImageName = "3e8c2458f1e542ab8aa275e4083ee47a",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1314,7 +1314,7 @@ namespace vaultgamesesh
|
|||||||
{
|
{
|
||||||
new c00005d.c000063
|
new c00005d.c000063
|
||||||
{
|
{
|
||||||
Tag = "recroomoriginal",
|
Tag = "rro",
|
||||||
Type = 2
|
Type = 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1330,7 +1330,7 @@ namespace vaultgamesesh
|
|||||||
Name = "Park",
|
Name = "Park",
|
||||||
Description = "A sprawling park with amphitheater, play fields, and a cave.",
|
Description = "A sprawling park with amphitheater, play fields, and a cave.",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "Park.png",
|
ImageName = "79ee7af2532247f397867e48daa9d264.png",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1380,7 +1380,7 @@ namespace vaultgamesesh
|
|||||||
Name = "QuestForDraucula",
|
Name = "QuestForDraucula",
|
||||||
Description = "Embark on a quest to murder some goblins and skeletons, then jump through an empty doorway to the voidlands in this beta quest!",
|
Description = "Embark on a quest to murder some goblins and skeletons, then jump through an empty doorway to the voidlands in this beta quest!",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "DraccIsBack.png",
|
ImageName = "d0df003353914adfaecdd23f428208b6",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1430,7 +1430,7 @@ namespace vaultgamesesh
|
|||||||
Name = "Bowling",
|
Name = "Bowling",
|
||||||
Description = "shut up coffeeman this bowling description was so annoying",
|
Description = "shut up coffeeman this bowling description was so annoying",
|
||||||
CreatorPlayerId = 782441001UL,
|
CreatorPlayerId = 782441001UL,
|
||||||
ImageName = "bowling.png",
|
ImageName = "4d143a3359e8483e8d48116ab6cacecb",
|
||||||
State = 0,
|
State = 0,
|
||||||
Accessibility = 1,
|
Accessibility = 1,
|
||||||
SupportsLevelVoting = false,
|
SupportsLevelVoting = false,
|
||||||
@@ -1480,8 +1480,8 @@ namespace vaultgamesesh
|
|||||||
new c00005d.c000060
|
new c00005d.c000060
|
||||||
{
|
{
|
||||||
Room = new c00005d.c000061
|
Room = new c00005d.c000061
|
||||||
{
|
{
|
||||||
RoomId = 29UL,
|
RoomId = Convert.ToUInt64(File.ReadAllText("SaveData\\Rooms\\Downloaded\\roomid.txt")),
|
||||||
Name = File.ReadAllText("SaveData\\Rooms\\Downloaded\\roomname.txt"),
|
Name = File.ReadAllText("SaveData\\Rooms\\Downloaded\\roomname.txt"),
|
||||||
Description = "OpenRec Downloaded Custom Room",
|
Description = "OpenRec Downloaded Custom Room",
|
||||||
CreatorPlayerId = APIServer.CachedPlayerID,
|
CreatorPlayerId = APIServer.CachedPlayerID,
|
||||||
@@ -1500,7 +1500,7 @@ namespace vaultgamesesh
|
|||||||
new c00005d.c00005f
|
new c00005d.c00005f
|
||||||
{
|
{
|
||||||
RoomSceneId = 1L,
|
RoomSceneId = 1L,
|
||||||
RoomId = 29UL,
|
RoomId = Convert.ToUInt64(File.ReadAllText("SaveData\\Rooms\\Downloaded\\roomid.txt")),
|
||||||
RoomSceneLocationId = File.ReadAllText("SaveData\\Rooms\\Downloaded\\roomsceneid.txt"),
|
RoomSceneLocationId = File.ReadAllText("SaveData\\Rooms\\Downloaded\\roomsceneid.txt"),
|
||||||
Name = "Home",
|
Name = "Home",
|
||||||
IsSandbox = true,
|
IsSandbox = true,
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ namespace vaultgamesesh
|
|||||||
this.WebSock.AddWebSocketService<Late2018WebSock.NotificationWS>("/api/notification/v2");
|
this.WebSock.AddWebSocketService<Late2018WebSock.NotificationWS>("/api/notification/v2");
|
||||||
this.WebSock.AddWebSocketService<Late2018WebSock.HubWS>("/hub/v1");
|
this.WebSock.AddWebSocketService<Late2018WebSock.HubWS>("/hub/v1");
|
||||||
this.WebSock.Start();
|
this.WebSock.Start();
|
||||||
Console.WriteLine("2018 WebSocket server started!");
|
Console.WriteLine("[LateWebSocket.cs] has started.");
|
||||||
|
Console.WriteLine("[LateWebSocket.cs] is listening.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Token: 0x04000047 RID: 71
|
// Token: 0x04000047 RID: 71
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ namespace ws
|
|||||||
webSocketServer.AddWebSocketService<WebSocket.NotificationV2>("/api/notification/v2");
|
webSocketServer.AddWebSocketService<WebSocket.NotificationV2>("/api/notification/v2");
|
||||||
webSocketServer.AddWebSocketService<WebSocket.NotificationV2>("/hub/v1");
|
webSocketServer.AddWebSocketService<WebSocket.NotificationV2>("/hub/v1");
|
||||||
webSocketServer.Start();
|
webSocketServer.Start();
|
||||||
Console.WriteLine("WebSocket.cs has started.");
|
Console.WriteLine("[WebSocket.cs] has started.");
|
||||||
Console.WriteLine("WebSocket.cs is listening.");
|
Console.WriteLine("[WebSocket.cs] is listening.");
|
||||||
}
|
}
|
||||||
|
|
||||||
public class NotificationV2 : WebSocketBehavior
|
public class NotificationV2 : WebSocketBehavior
|
||||||
|
|||||||
Reference in New Issue
Block a user