Starting work on private messaging back-end.

This commit is contained in:
rainbow napkin 2025-09-18 03:42:52 -04:00
parent 1384b02f4d
commit d541dce8c4
4 changed files with 59 additions and 3 deletions

View file

@ -68,12 +68,15 @@ class channel{
* Handles initial client connection
*/
connect(){
this.socket = io({
extraHeaders: {
const clientOptions = {
extraHeaders: {
//Include CSRF token
'x-csrf-token': utils.ajax.getCSRFToken()
}
});
};
this.socket = io(clientOptions);
this.pmSocket = io("/pm", clientOptions);
}
/**