-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.txt
90 lines (63 loc) · 2.89 KB
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
in watch.json
in include was also
"\\.js$",
react on server tut
extended intro
https://www.smashingmagazine.com/2016/03/server-side-rendering-react-node-express/
https://scotch.io/tutorials/react-on-the-server-for-beginners-build-a-universal-react-and-node-app
https://www.youtube.com/watch?v=tsEHfL-Ul1Y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
prevent uninvited users to be able toget push notifs etc
- - send push notifications about new messages
https://developers.google.com/web/fundamentals/codelabs/push-notifications/
https://github.com/web-push-libs/web-push
https://www.jsdelivr.com/package/npm/push-js?path=example
https://stackoverflow.com/questions/33687298/how-to-send-push-notification-to-web-browser
https://stackoverflow.com/questions/40930285/node-js-and-push-notifications
https://shockoe.com/blog/creating-a-push-notification-server-with-node-js/
https://www.cronj.com/blog/browser-push-notifications-using-javascript/
to whom do i send push
- to each member (subscription) of room, where message came from
(except sender)
who sees push
who is not having window focused (WindowClient.focused == false)
sending msg fromm SW to page
https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage
https://developer.mozilla.org/en-US/docs/Web/API/Client
https://developer.mozilla.org/en-US/docs/Web/API/WindowClient
http://craig-russell.co.uk/2016/01/29/service-worker-messaging.html#.Wvr3_NNuZE4
add actions to push notifs
https://developers.google.com/web/fundamentals/push-notifications/notification-behaviour
improve to whom server-socket sends new messages
https://github.com/jgonera/socket.io-multichat/blob/master/app.js
http://www.psitsmike.com/2011/10/node-js-and-socket-io-multiroom-chat-tutorial/
render chatrooms on server
- to learn new thing
- to save memory in browser (all those fetched files when changing rooms) ?
add: componentWillUnmount: function () {
socket.removeListener('data', this.handleData);
}
- - - - - - - - - - - - - - - - - - - - - - - -
done
- react app components
navbar with 3 chat rooms
chat room feed
input - text
input file
- add some gate:
session?
- use geametric cave paintings as background instead of space?
- add Vlads room and allowRoomAccess mdlwr
- nicer image positioning
- prevent (short) links to be understood as local
= add http:// in href attribute for those
- display warning 'not allowed'
- intelligent scrolling to last message
- change message input field to textarea (so it has more lines)
- add req.session gate on file upload API
- add sending files
- re-add send msg on Enter, shift+enter makes new line
- on sockets: added disconnect and error (etc) event listeners on client
- - - - - - - - - - - - - - - - - - - - - - - -
notifs
https://developer.mozilla.org/en-US/docs/Web/API/notification