Reading-Notes

Class 12 Summary :

Socket.io :

What is the benefit of transforming data into packets?

UDP is often refereed to as a connectionless protocol. Why is this?

Can a socket server application have multiple socket connections?

Can a socket connection application be connected to multiple socket servers?

Can an application be both a socket server and a socket connection?

Document the following Vocabulary Terms :

Term  
Observer Pattern software design pattern in which an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods.
Listener procedure or function in a computer program that waits for an event to occur.
Event Handler handle and verify user input, user actions, and browser actions
Event Driven Programming programming paradigm in which the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or message passing from other programs or threads.
Event Loop programming construct or design pattern that waits for and dispatches events or messages in a program.
Event Queue repository where events from an application are held prior to being processed by a receiving program or system.
Call Stack stack data structure that stores information about the active subroutines of a computer program.
Emit/Raise/Trigger in event-driven programming, emit sends a message to trigger a response and raise an event
Subscribe subscribe dom events in browser or node.js events.
database an organized collection of structured information, or data, typically stored electronically in a computer system

Web Socket :

Socket.IO :

Web Sockets VS Socket.io

image1

Sources:

source1

source2

source3

source4

source5

source6