Thursday, Aug 23, 2018
shippedMessages view and JWT validation
Buğra Gündüz built out a messaging interface for spoonsor with real-time socket support, and added JWT validation to validator.js.
In bgrgndzz/spoonsor, Gündüz created the messages view UI [1] and made it responsive across screen sizes [2]. He set up socket.io [3] to enable real-time communication, then implemented join and leave room functions [4] to manage connections. On the data side, he created a Message model [5] and added a query to fetch users who had interacted through messages [6].
In validatorjs/validator.js, Gündüz opened a pull request adding an isJWT function [7]. The validator checks whether a supplied string is a valid JWT token, using a regex based on community input. The change addresses an existing request [7].
Sources
- create messages view ui · bgrgndzz/spoonsor
- make messages view responsive · bgrgndzz/spoonsor
- setup socket.io · bgrgndzz/spoonsor
- join room and leave room functions · bgrgndzz/spoonsor
- create Message model · bgrgndzz/spoonsor
- fetch users interacted through messages · bgrgndzz/spoonsor
- Add isJWT · validatorjs/validator.js