Reading Notes
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
Does socket.io use HTTP? Why? Yes, HTTP is required for the initial handshake to setup the communication
What happens when a client emits an event? The event gets passed to the server through websockets
What happens when a server emits an event? A callback function allows us to implement some sort of action on the client end
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
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
join
and leave