reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 401: Class 12 - Socket.io


Questions

  1. What is the benefit of transforming data into packets? Splitting the data allows each piece to be sent independent of the others and reassembled on the receiving end which allows for more network flexibility.

  2. UDP is often refereed to as a connections protocol. Why? UDP does not require a server and client to establish a three-way handshake prior to transmission.

  3. Can a socket server application have multiple socket connections? Yes, using socket.io

  4. Can a socket connection application be connected to multiple socket servers? Yes, as long as each connection is associated with a different client IP/Port.

  5. Can an application be both a socket server and a socket connection? Not if they are intended to be used at the same time on the same port.

Vocabulary

Observer Pattern Software design pattern where an object notifies its dependents automatically of any state changes

Listener An object or function that is activated by a specific event

Event Handler Function that responds or processes an event

Event Driven Programming Programming in which the flow of the processes are determined by events such as user input

Event Loop Programming construct that waits for and dispatches events

Event Queue Where events are stored prior to execution

Call Stack Where functions are stored prior to execution

Emit/Raise/Trigger Methods for triggering an event

Subscribe Similar to .then()

Database Data storage structure

Watch: OSI Model Explained

Watch: TCP Handshakes Explained

Read: Web Sockets

Read: Socket.io Tutorial

Read: Socket.io vs Web Sockets

Bookmark: Socket.io Documentation

Bookmark: Socket.io Server API

Bookmark: Socket.io Client API

Bookmark: Socket Testing Tool


Return to reading-notes Deployed Site

Return to reading-notes Mark Down