reading-notes

Reading notes for CodeFellows Coding

View project on GitHub

Class 13

Resources:

Review, Research, and Discussion

  1. What does it mean that web sockets are bidirectional? Why is this useful?
    • Whereas HTTP relies on a client request to receive a response from the server for every exchange, WebSockets allow for full-duplex bidirectional communication. This enables the server to send real-time updates asynchronously, without requiring the client to submit a request each time. In the context of networked AV and control systems, this allows devices to send and receive continuous streams of data to and from any point on the network.
  2. Does socket.io use HTTP? Why?
    • Yes, to connect nsmespaces and rooms
  3. What happens when a client emits an event?
    • An event will be send to server
  4. What happens when a server emits an event?
    • Server defines where (all clients or not) to send data
  5. What happens if a client “misses” an event?
    • Event will be ignored
  6. How can we mitigate this?

Vocabulary Terms

  1. Socket
    • A socket is one endpoint of a two-way communication link between two programs running on the network.
  2. Web Socket
    • WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection.
  3. Socket.io
    • It is a JavaScript library for real-time web applications. It enables real-time, bi-directional communication between web clients and servers.
  4. Client
    • in client/server relationships the server can push messages to clients. Whenever an event occurs, the idea is that the server will get it and push it to the concerned connected clients.
  5. Server
    • A server is a computer that provides data to other computers. It may serve data to systems on a local area network (LAN) or a wide area network (WAN) over the Internet.
  6. OSI Model
    • The OSI (Open Systems Interconnection) model was created by the ISO to help standardize communication between computer systems. It divides communications into seven different layers, which each include multiple hardware standards, protocols, or other types of services.
    • Layers of the OSI model : The Physical layer, The Data Link layer, The Network layer, The Transport layer, The Session layer,The Presentation layer, The Application layer
  7. TCP Model
    • The TCP/IP model is a concise version of the OSI model. It contains four layers, unlike seven layers in the OSI model.
    • The layers are: Process/Application Layer, Host-to-Host/Transport Layer, Internet Layer, Network Access/Link Layer
  8. TCP
    • Transmission Control Protocol.
    • It is a standard that defines how to establish and maintain a network conversation through which application programs can exchange data.
  9. UDP
    • a communications protocol that facilitates the exchange of messages between computing devices in a network. It’s an alternative to the transmission control protocol (TCP). In a network that uses the Internet Protocol (IP), it is sometimes referred to as UDP/IP.
  10. Packets
    • is a small segment of a larger message. Data sent over computer networks, such as the Internet, is divided into packets.