Blockland Forums > General Discussion
HamHost Dedicated Blockland servers | New poll: More free-user features?
hammereditor²:
Okay. I've decided to use JavaScript in HTML5, along with WebSockets. It seems a lot easier to do than .jsf.
I will first do a proof-of-concept test to make sure this works.
On the web page, the client presses the 'Connect' button, and sends text over the socket. The WebSocket server, which is made out of Java, echoes the response back. The client then displays the response in a text area.
Rub:
Suggest you use socket.io instead of standard websockets, it includes support for falling back to things such as long polling AJAX for stuff browsers. RTB uses socket.io + nodejs for the live streaming aspects of the control panel, great to work with.
Subpixel:
You should learn Php. It's easy, you can do some great stuff with it.
hammereditor²:
--- Quote from: Rub on September 13, 2013, 07:50:54 PM ---Suggest you use socket.io instead of standard websockets, it includes support for falling back to things such as long polling AJAX for stuff browsers. RTB uses socket.io + nodejs for the live streaming aspects of the control panel, great to work with.
--- End quote ---
I'm going to keep everything simple instead of doing things the best way, and spending 50% more time. I don't care if old web browsers from 2011 or before cannot support WebSockets and can only use HTTP / Comet crap.
I think my clients should be glad since they would be able to access the control panel from their smartphone instead of just at a desktop computer.
$trinick:
--- Quote from: hammereditor² on September 13, 2013, 10:27:53 PM ---I'm going to keep everything simple instead of doing things the best way, and spending 50% more time. I don't care if old web browsers from 2011 or before cannot support WebSockets and can only use HTTP / Comet crap.
I think my clients should be glad since they would be able to access the control panel from their smartphone instead of just at a desktop computer.
--- End quote ---
Smartphones support websockets/socket.io. The RTB control panel loads fine on my phone, aside from some layout problems. Streaming works, too.