Commit Graph

104 Commits

Author SHA1 Message Date
David Majdandžić
630c8a1004 Fixed issue that caused sessions to be too busy to send messages that made them busy in the first place 2023-03-27 17:44:06 +02:00
David Majdandžić
eb9c8468e2 Implement new "Busy" state for client and center to signify many message send 2023-03-27 17:26:06 +02:00
David Majdandžić
2e09392627 Fix issue where client sessions were closed without status updates 2023-03-27 16:40:54 +02:00
David Majdandžić
96b0257c1d Fix issue where the center thought it still had live connections when a connection died 2023-03-27 16:39:15 +02:00
David Majdandžić
21d0e515e8 Minor changes and fixes 2023-03-27 11:27:13 +02:00
David Majdandžić
9638917174 Add comentary 2023-03-27 09:26:39 +02:00
David Majdandžić
5708472ec3 Minor fixes and improvements 2023-03-27 09:11:55 +02:00
David Majdandžić
c6880ca0d6 Cleanup 2023-03-26 18:16:10 +02:00
David Majdandžić
190ae7e296 Fix issue where websockets would be sent duplicate messages 2023-03-26 18:14:06 +02:00
David Majdandžić
268d19815a Fix issue with client send 2023-03-26 17:41:45 +02:00
David Majdandžić
35e5edef5d A center session ending now properly updates the center 2023-03-26 17:40:46 +02:00
David Majdandžić
8e5e1fcda3 Minor fixes 2023-03-26 17:12:32 +02:00
David Majdandžić
5187854d5d Implement defaults for centers and clean up code 2023-03-26 15:34:40 +02:00
David Majdandžić
d952770fee Implement the same for centers
Should really standardize this... Wish JS had interfaces...
2023-03-26 15:28:47 +02:00
David Majdandžić
601fb6c618 Implement configured messages that can be sent rapidly 2023-03-26 15:20:53 +02:00
David Majdandžić
1485325b07 Fix some minor issues 2023-03-25 22:50:15 +01:00
David Majdandžić
3b58d09826 Update insomnia file 2023-03-25 21:24:20 +01:00
David Majdandžić
bc063f0b34 Update loggers 2023-03-25 18:20:32 +01:00
David Majdandžić
bcf48e9d6f Cleanup 2023-03-25 18:14:22 +01:00
David Majdandžić
e639759ed5 Fix issue with websockets being closed 2023-03-25 18:12:26 +01:00
David Majdandžić
9773cce836 Implement websocket notifications for center status, mode and few other changes 2023-03-25 17:55:56 +01:00
David Majdandžić
b8e9642507 Implement closing and destroying center sessions
Although this currently serves little to no purpose because the sessions can not be opened again
2023-03-25 17:40:44 +01:00
David Majdandžić
6a29bb3014 Implement mode modification and R/W from file 2023-03-25 16:48:35 +01:00
David Majdandžić
4ec3e9fed0 Implement getAllModes endpoint 2023-03-25 16:44:46 +01:00
David Majdandžić
390ad046c2 Implement REST endpoints for center modification (username, password) 2023-03-25 16:34:14 +01:00
David Majdandžić
931f546653 Implement center operation modes 2023-03-25 16:27:12 +01:00
David Majdandžić
ff67a49796 Fix connections dropping due to enquire_links dropping 2023-03-25 16:22:34 +01:00
David Majdandžić
10da85dd90 Implement client replying to deliver and center to submit_sm 2023-03-25 16:19:00 +01:00
David Majdandžić
14ed759c1a Implement response from centers 2023-03-25 16:02:14 +01:00
David Majdandžić
7f2929161e Implement client session patch 2023-03-25 15:43:17 +01:00
David Majdandžić
7b79e864fc Implement client session username and password changing 2023-03-25 15:34:47 +01:00
David Majdandžić
d1757379b5 Fix the cleanup running twice 2023-03-25 14:59:29 +01:00
David Majdandžić
dcaaadf908 Add insomnia request document 2023-03-25 14:48:58 +01:00
David Majdandžić
ba8bca95a8 Minor fixes regarding websockets 2023-03-25 14:47:59 +01:00
David Majdandžić
135a89f87f Minor fixes on center 2023-03-25 14:42:15 +01:00
David Majdandžić
c505c4b44e Implement endpoints for notify 2023-03-25 14:12:25 +01:00
David Majdandžić
b3d6faa1c9 Implement sending notify messages 2023-03-25 14:09:25 +01:00
David Majdandžić
d2e16ecbd5 Implement basic centerSession structure 2023-03-25 13:54:31 +01:00
David Majdandžić
2c5a9b3604 Clean up error handling on client 2023-03-25 13:40:24 +01:00
David Majdandžić
8a4ff4bf6c Refactor current structure to represent clientSessions 2023-03-25 13:12:49 +01:00
David Majdandžić
b7eab4f126 Create event for counter update and propagate to websockets 2023-03-24 22:13:29 +01:00
David Majdandžić
6cf5b99705 Clean code 2023-03-24 21:55:16 +01:00
David Majdandžić
1af1eda9d8 Implement cancel send timer 2023-03-24 21:28:38 +01:00
David Majdandžić
b6e50f5e1b Implement sending messages on interval 2023-03-24 21:21:58 +01:00
David Majdandžić
401497bee0 Implement writing to and reading from a sessions file 2023-03-24 20:29:35 +01:00
David Majdandžić
32d5d726af Sessions are now unique - no more than 1 can exist per url 2023-03-24 17:32:07 +01:00
David Majdandžić
796c9b473e Implement PDU broadcast to websocketserver 2023-03-24 17:24:15 +01:00
David Majdandžić
1ce8390189 Implement session deleting and generally clean up 2023-03-24 17:19:13 +01:00
David Majdandžić
cd9faee388 Fix issue with closing connections 2023-03-24 16:51:56 +01:00
David Majdandžić
5dc0e36818 Fix issues with websocket communication on status change 2023-03-24 16:45:44 +01:00