Comments (3)
Hey @Geppard, did you get a chance to check the auth
example on colyseus-examples? Cheers
from colyseus-unity-sdk.
I think this is about having the ability to pass the login and password parameters to the "opions" and process them at the clientVerify on server, not the room.
There was an issue about colysesus.js
colyseus/colyseus.js#41 (comment)
So, if we look at the unity3d client, we will see that there no possibility to pass "options" (the client on first connection have no parameters)
https://github.com/colyseus/colyseus-unity3d/blob/master/Assets/Plugins/Colyseus/Client.cs#L70
{
this.id = id;
this.endpoint = new UriBuilder(new Uri (endpoint));
this.connection = CreateConnection();
this.connection.OnClose += (object sender, EventArgs e) => this.OnClose.Invoke(sender, e);
}
https://github.com/colyseus/colyseus-unity3d/blob/master/Assets/Plugins/Colyseus/Client.cs#L159
protected Connection CreateConnection (string path = "", Dictionary<string, object> options = null)
from colyseus-unity-sdk.
@colyseus/social should help you with this now. See docs: https://docs.colyseus.io/authentication/#email-password
from colyseus-unity-sdk.
Related Issues (20)
- WebGL Build failed on Unity 2021.3.1f1c1 HOT 2
- Error creating .unitypackage (GitHub Workflow) HOT 1
- "Local schema mismatch from server." only in unity android build HOT 1
- Cannot overwrite message callback HOT 2
- JsonSerializationException when receiving a message from server in WebGL export HOT 14
- Can not export to WebGL
- Domain Reload support
- JsonSerializationException: Unable to deserialize instance of 'BgDataMessage' for iOS on device.. HOT 7
- Schema Backward Compatibility not working as expected HOT 2
- colyseus-unity-sdk-0.14.20 schema-codegen bug. HOT 3
- Problems with lobbyRoom and ColyseusRoomAvailable. HOT 4
- colyseus-unity-sdk-0.14.15 ->18 Example Error. HOT 2
- schema lost in reconnection situation HOT 2
- The 'onMesssage' in file 'Assets/Colyseus/Runtime/WebSocket/WebSocket.jslib' is wrong
- Colyseus.MatchMakeException: Unexpected end of JSON input HOT 2
- ColyseusManager destroy game object unexpected or have multiple instance when change scene HOT 3
- Unable to Join GameRoom after migrating to 0.15.3 Version Unity HOT 3
- Make OnJoin private
- OnStateChange Called When Current Value And Previous Values are same HOT 4
- about 0.15 state.player.listen("field", (value)) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colyseus-unity-sdk.