How are WebSocket connections initiated in the context of a servlet-based web application?

  • They are automatically established when the web application starts.
  • They are initiated through a dedicated WebSocket servlet.
  • They are initiated using the openConnection() method.
  • They require manual configuration in the web.xml file.
WebSocket connections in a servlet-based web application are initiated through a dedicated WebSocket servlet, which is configured to handle WebSocket communication.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *