Socket.io

code 102 notes


Socket.io

  1. What is the benefit of transforming data into packets?

Packets are more cost- and data-efficient, and they’re easier to scale.

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

Because it sends the data whenever it is ready without establishing a connection first.

  1. Can a socket server application have multiple socket connections?

Yes if they’re associated with different client-side IP.Port pairs.

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

Don’t know (yet).

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

Don’t know (yet).

Document the following Vocabulary Terms

  • Observer Pattern: subjects maintain lists of observers and notify them of any state changes by calling methods

(will continue the rest)

  • Listener

  • Event Handler

  • Event Driven Programming

  • Event Loop

  • Event Queue

  • Call Stack

  • Emit/Raise/Trigger

  • Subscribe

  • database