Afterwards we’re adding a close handler to remove the session from the data pool when the connection is closed.
Finally when the client pushes a message to the websocket server, we’re adding the current date to the chat message in the JSON format and we’re broadcasting the message to all registered chatters for the specific chatroom using the Vert.x Event Bus and the connection id . The user may send a JSON formatted message to the server, a callback is defined for updates from the server that updates the client’s view.
The websocket server listens on port 8090 for connections.
First of all we’re rejecting every request that does not match our specified “path”.
Sto creando una versione HTML per sostituire l'applet. Si pu essere in grado di eseguire la chat com Web Start Application L'applet stato aggiornato per funzionare correttamente con Java 8. Se non siete in grado di aggiornare java allora si pu provare a utilizzare l'applet legacy.Otherwise we’re assigning the connection id to the chat room.Vert.x offers a shared data structure that we’re using here to make this information available to all workers.In short, Microsoft feared and sought to impede the development of network effects that cross-platform technology like Netscape Navigator and Java might enjoy and use to challenge Microsoft's monopoly.Another internal Microsoft document indicates that the plan was not simply to blunt Java/browser cross-platform momentum, but to destroy the cross-platform threat entirely, with the "Strategic Objective" described as to "Kill cross-platform Java by grow[ing] the polluted Java market." In January 2001, Sun and Microsoft settled the suit.