Author Topic: PvPGN HTML5 Chatroom  (Read 4835 times)

Offline AHB

  • Grunt
  • ***
  • Posts: 50
    • View Profile
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
« Last Edit: August 03, 2017, 09:47:47 PM by AHB »

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • 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!

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
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.

Offline AHB

  • Grunt
  • ***
  • Posts: 50
    • View Profile
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 !)