A server that sends info (in this case temperature data, every second) through a socket connection which can be listened to.
The goal being to display temperature and dynamically update the value on a webpage, with javascript.
The server cannot be modified.
What you need to do is make the connection with PHP, or something else server side, and return the result via AJAX to your JavaScript.