Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 982 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 982 Bytes

Web Sockets

Task 1.

Please, implement an ability for the application to work with WebSocket Server (client side). Implement this in client.js file. Do not make changes in index.html. User should be able to enter his nickname and message, and after a click on the 'Send' button, the information should be sent to WebSocket Server in the form nickname: message The application should also display messages, received from WebSocket Server in the chat element. Each massage should be displayed in a new line. You can test your client with 'wss://boiling-beach-26008.herokuapp.com' passed as a parameter to WebSocket constructor. This is implemented version of WebSocket Server.

Task 2.

Please, implement the work of ws WebSocket Server in server/index.js. WebSocket Server should run on 8082 port and keep track of its connected clients (use built-in ability). The message, received from one of the clients should be sent to all of them. (Simple implementation of chat.)