Skip to content

Commit

Permalink
remove @colyseus/social usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Feb 27, 2021
1 parent ba9ee7c commit 4e3fff5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions Assets/ColyseusClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,6 @@ async void ConnectToServer ()
* Connect into Colyeus Server
*/
client = ColyseusManager.Instance.CreateClient(endpoint);

await client.Auth.Login();

var friends = await client.Auth.GetFriends();

// Update username
client.Auth.Username = "Jake";
await client.Auth.Save();
}

public async void CreateRoom()
Expand Down
3 changes: 0 additions & 3 deletions Server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import express from "express";
import cors from "cors";

import { Server, LobbyRoom } from "colyseus";
import socialRoutes from "@colyseus/social/express";

import { DemoRoom } from "./rooms/DemoRoom";
import { FossilDeltaRoom } from "./rooms/FossilDeltaRoom";
Expand All @@ -30,8 +29,6 @@ gameServer.define("lobby", LobbyRoom);
gameServer.define("fossildelta", FossilDeltaRoom);
gameServer.define("no_state", RoomWithoutState);

app.use("/", socialRoutes);

app.get("/something", function (req, res) {
console.log("something!", process.pid);
res.send("Hey!");
Expand Down
1 change: 0 additions & 1 deletion Server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"node": ">= 8.x"
},
"dependencies": {
"@colyseus/social": "^0.10.0",
"colyseus": "^0.14.1",
"cors": "^2.8.5",
"express": "^4.13.3",
Expand Down

0 comments on commit 4e3fff5

Please sign in to comment.