Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typescript server #3

Merged
merged 5 commits into from
Feb 18, 2021
Merged

Add typescript server #3

merged 5 commits into from
Feb 18, 2021

Conversation

davawen
Copy link
Contributor

@davawen davawen commented Feb 17, 2021

Hello!
So, in a new TypescriptServer folder, I converted the server code into typescript, and merged all of the secondary files (constructors/, custom/ and static/) into a single networking file.
So, uh, tell me what you think of it I guess

Copy link
Owner

@evolutionleo evolutionleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Seems like a nice addition!

I have one concern though: So, in networking.ts:4 you export type Data, which is a string-string object. Doesn't it mean that you can only send strings to the server?
If so, it would probably be better to change the value type to any

@evolutionleo evolutionleo merged commit 4dbb148 into evolutionleo:main Feb 18, 2021
@davawen
Copy link
Contributor Author

davawen commented Feb 18, 2021

Yup, now that you mention it, I don't really know why I put it to string, it would be much better if it was any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants