reading-notes

Reading Notes

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

Code 401: Class 13 - Message Queues


Questions

  1. What does it mean that web sockets are bidirectional? Why useful? Bidirectional means that a single port can both receive and send data this allows for asynchronous responses without having to wait for additional requests

  2. Does socket.io use HTTP? Why? Yes, HTTP is required for the initial handshake to setup the communication

  3. What happens when a client emits an event? The event gets passed to the server through websockets

  4. What happens when a server emits an event? A callback function allows us to implement some sort of action on the client end

  5. What happens if a client “misses” an event? How can we mitigate this? If an event is missed it is ignored. To avoid this have listeners always on and use internal logic to decide if the event is relevant

Vocabulary

Socket software structure that acts as an endpoint

Websocket communication protocol that provides full-duplex comm over single TCP

Socket.io javascript library for building realtime web applications

Client a user computer that interacts with a server

Server computer that accepts requests from a client and returns data

OSI MOdel Open Systems Interconnection Model, allows for interoperability between different platforms

TCP Model 1. Process/Application Layer, 2. Host / Transport Layer, 3. Internet Layer, 4. Network Access/Link Layer

TCP Transmission Control Protocol

UDP User Datagram Protocol, low latency and loss tolerating connections

Packets a quantized piece of data used to transmit information in a network

Read: Socket.io Chat Example

Read: Rooms and Nameplaces

Read: Socket.io Emit Cheatsheet


Return to reading-notes Deployed Site

Return to reading-notes Mark Down