War2.ru Slogan
News: All hail our wise & benevolent admins!


Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.

PvPGN HTML5 Chatroom 200  3

Peon Posts: 7 Karma: +0/-0 **

AHB

  • Peon
  • **
  • Posts: 7
    • View Profile
*

AHB

PvPGN HTML5 Chatroom
« on: August 03, 2017, 03:44:15 PM »
Hi
I found a way to make an HTML5 PvPGN chatroom login possible using websockets.

I used a library called websockify which runs on your webserver and acts as a proxy between the web user and server.war2.ru:6112, sending and receiving between the HTTP user and TCP socket

 If anyone with some Javascript and CSS skills has some time to contribute to make it prettier I think it would be a nice addition to the server to be able to log in and chat from mobile devices, especially iPhone which doesnt have a PvPGN chat app like Android does.

I have a TODO list on github with features that we can work on if anyone is interested

https://github.com/reillychase/pvpgn_html5_chatroom

example http://war2.info/static/chat.html

You can use my throwaway account to test it -- abcdef // abcdef
Ogre Mage Posts: 2295 Karma: +46/-2 retired, be in music section ********

easycompany

  • Ogre Mage
  • ********
  • Posts: 2295
  • retired, be in music section
    • View Profile
Re: PvPGN HTML5 Chatroom
« Reply #1 on: August 03, 2017, 08:57:32 PM »
 :blank: very cool man!
Ogre Mage Posts: 2349 Karma: +75/-1 ********

tupac

  • Ogre Mage
  • ********
  • *
  • Posts: 2349
    • View Profile
Re: PvPGN HTML5 Chatroom
« Reply #2 on: August 04, 2017, 04:15:05 PM »
You should have it create an account for us randomly. Pretty cool reminds me of the webbot days in bnet.
Peon Posts: 7 Karma: +0/-0 **

AHB

  • Peon
  • **
  • Posts: 7
    • View Profile
*

AHB

Re: PvPGN HTML5 Chatroom
« Reply #3 on: August 23, 2017, 02:39:32 PM »
added some updates, its more mobile friendly now:

https://war2.info/chat

Lots of work to do including

unicode support
more coloring of different messages
lots of fixing commands like making '/stats player1' send as '/stats player1 w2bn' etc to get around telnet behaviors and make it more wc2 natural
bug on iphone which puts padding above keyboard when input is focused

if anyone with html/css/javascript skills wants to help out let me know :)
(AKA @mousEtopher !)