Remsgr: MSNP server in Node.js

Nice! I haven’t seen much since July so I might have lost some news

That’s so amazing :3
¿Is it open source?

not for now, and i’m not sure it’ll be for now

VERY early stage of WLM 2009, nothing really works on it yet but it logs in and displays contacts!

6 Likes

we are currently in the progress of rewriting the entire server in typescript for better performance (and also because my current code sucks)

in the meanwhile tho… i’ve made a little web client :slight_smile:

1 Like

that chat web version reminds me of another messenger

which one?

forgot to post this here

1 Like

How do you make accounts in node js, i’m confused.

weird necro, but ok:

Usually you tie enough of your user state (usually the parts the user can modify, or critical constants) to be marked to be stored to a persistent storage, and then load it on user logon.

That’s how I’ve done it, anyway.

I mean, modifying the database or commands to create an account.

That depends on your database and following ORM you use.

For the most part, you use whatever table insertion interface and just write whenever you feel like it’s necessary.

I mostly do it on registration or whatever creates a user object for the first time.

You then load the relevant part of the database in your server code when the user logs in.

like if i get remsgr’s code from github, like how did thre owner add accounts in the server. remsgr-nextgen btw.

All the relevant code for an account, from authentication to database schema is are in these files, with the line pointer pointing to the relevant interest:
https://github.com/luxploit/remsgr-nextgen/blob/refactor/src/msnp/handlers/notification/logon.ts#L376
https://github.com/luxploit/remsgr-nextgen/blob/refactor/src/database/queries/populate.ts#L11
https://github.com/luxploit/remsgr-nextgen/blob/refactor/src/database/queries/account.ts#L5
https://github.com/luxploit/remsgr-nextgen/blob/refactor/src/database/models/account.ts#L3

So, do i need to make a html signup page for making an account?

please note that this is the unfinished livepulse rewrite laura was making for remsgr, not my code

(I am aware of this, and kind of sorry, it’s just I didn’t want to post code from a different server for now, I just wanted something with the relevant parts required to understand the concept, and inserting a few ```'s when I didn’t want to continue this thread was irritating.)


I mean, I guess you can? Whatever you need to get your server to create an SQL query or whatever you need to “create an object”.

Really, doesn’t even have to be integrated into the server itself if using a database, if in-memory (or wholly managed by one thing), it would need a RPC interface however. That is an unrelated topic.

Then what happened to your code, erased? Eh?