Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's so special in web sockets messages displayed with a green background in Chrome?

Looking at web sockets at Stack Exchange, I notice that some messages are displayed with a green background in Chrome:

A screenshot of Network tab of Developer tools, showing messages with green background among ordinary messages with white background

What's so special in those messages? What are they?

like image 537
Arseni Mourzenko Avatar asked Dec 27 '12 23:12

Arseni Mourzenko


1 Answers

The green background ones are frames (messages) sent to the server. The white background are the ones received from the server.

Messages are color-coded according to their type:

  • Outgoing text messages are light-green.
  • Incoming text messages are white.
  • WebSocket opcodes are light-yellow.
  • Errors are light-red.

Source

like image 74
Marcelo Jabali Avatar answered Nov 13 '22 12:11

Marcelo Jabali