Websocket Proxy

  • Arynth
  • Arynth's Avatar Topic Author
  • Offline
  • New Member
More
14 Aug 2013 18:38 #1 by Arynth
Websocket Proxy was created by Arynth
It was mentioned somewhere (not sure if it was here or on another Mud Site) that you support pointing the portal here to a Mud's own websocket proxy. Do you have one you recommend over others? Also, if you use your own or a modification of one, what did you modify to send the client's actual IP to the mud?

I found several Websocket-to-TCP proxys online, but of course none of them support sending an IP address via GMCP/ATCP/MSDP out of the box. I was wanting to set one up for use not only with Mud Portal, but with our own web client as well. Getting the IP from the proxy is something I would like to have the same, whether it is from your proxy here, or our own.

Please Log in or Create an account to join the conversation.

More
14 Aug 2013 18:50 #2 by plamzi
Replied by plamzi on topic Websocket Proxy
I've shared what I'm using on MudBytes:

node.js websocket proxy

My code is probably going to evolve a bit over time, and I may not have time to update the released version, but this has everything you need to get you up and going.

Let me know if/when you decide to go that route. It would be useful for testing communication with an external Websocket proxy.

Please Log in or Create an account to join the conversation.

  • Arynth
  • Arynth's Avatar Topic Author
  • Offline
  • New Member
More
14 Aug 2013 19:38 #3 by Arynth
Replied by Arynth on topic Websocket Proxy
Well, I looked at yours, but the host we use doesn't have node installed on it currently. Before I contact him to get it installed, I am trying a ruby proxy out first, to see if it will work. I can modify it to match what you have easily enough, and as we already have other Ruby scripts running this would reduce the installed applications for the mud to work.

It should work with ws://7thplane.net:8880, unless I've done something horribly wrong.

Please Log in or Create an account to join the conversation.

More
15 Aug 2013 15:43 #4 by Zivilyn
Replied by Zivilyn on topic Websocket Proxy
Thanks plamzi!
Does it support MXP? I saw the MSDP was included.
This with MXP would be golden.

Also, was there any configuration or simply a telnet proxy? I remember Matt was working on one with things like N/S/E/W buttons etc.

Thanks for sharing your work!
- Dave.

-=-=-=-=-=-=-=-
Dave/Zivilyn/Skol etc @
www.AnsalonMUD.net

Please Log in or Create an account to join the conversation.

More
15 Aug 2013 16:17 #5 by plamzi
Replied by plamzi on topic Websocket Proxy

Arynth wrote: It should work with ws://7thplane.net:8880, unless I've done something horribly wrong.


I'm ready for testing this, but so far haven't gotten it to connect. Can you look at your proxy log to see if you're getting any incoming?

Here's the test URL:
www.mudportal.com/index.php/play?host=7t...ws=7thplane.net:8880

Please Log in or Create an account to join the conversation.

More
15 Aug 2013 16:35 #6 by plamzi
Replied by plamzi on topic Websocket Proxy

Zivilyn wrote: Does it support MXP? I saw the MSDP was included.
This with MXP would be golden.


I'm planning to support everything, eventually. MXP will not be difficult. (All that's handled on the client side, though. The proxy itself is dumb/transparent ATM, just relaying all data. At some point, I'll add compression support from source server to proxy, if server supports it. Proxy-to-app compression is already happening).

Right now, I'm focused on getting up a framework to allow everyone to be able to contribute code easily, including plugins that add MXP or customize MXP handling for certain games. I'm pretty close to showing you guys something.

Please Log in or Create an account to join the conversation.

More
15 Aug 2013 16:42 #7 by plamzi
Replied by plamzi on topic Websocket Proxy
Ping. This is a post to test if email notifications to topic subscribers are now working.

Please Log in or Create an account to join the conversation.

  • Arynth
  • Arynth's Avatar Topic Author
  • Offline
  • New Member
More
15 Aug 2013 16:45 #8 by Arynth
Replied by Arynth on topic Websocket Proxy
They did that time. :)

All I get when I visit that page is a 403 Forbidden error.

Please Log in or Create an account to join the conversation.

More
15 Aug 2013 16:47 #9 by plamzi
Replied by plamzi on topic Websocket Proxy

Arynth wrote: They did that time. :)

All I get when I visit that page is a 403 Forbidden error.


Could you forward me the email you received? Thanks.

Please Log in or Create an account to join the conversation.

  • Arynth
  • Arynth's Avatar Topic Author
  • Offline
  • New Member
More
15 Aug 2013 16:49 #10 by Arynth
Replied by Arynth on topic Websocket Proxy
What email address should I forward the notification to, as it came to my gmail address.

Also, the error page I'm seeing is on the play link you posted (as well as Play links in general).

Please Log in or Create an account to join the conversation.

More
15 Aug 2013 16:58 #11 by plamzi
Replied by plamzi on topic Websocket Proxy

Arynth wrote: What email address should I forward the notification to, as it came to my gmail address.

Also, the error page I'm seeing is on the play link you posted (as well as Play links in general).


Nevermind on the forwarding. I got an email as soon as you posted after my ping.

Try the links now--should be working.

Please Log in or Create an account to join the conversation.

  • Arynth
  • Arynth's Avatar Topic Author
  • Offline
  • New Member
More
15 Aug 2013 17:28 #12 by Arynth
Replied by Arynth on topic Websocket Proxy
I'm still playing around to see what I can figure out. I couldn't get the proxy to work at all, either way. I did download this, and got it working on my local machine:

github.com/dannytatom/muddy

Still trying to see if I can make it work on the server side, though.

Please Log in or Create an account to join the conversation.

More
15 Aug 2013 18:23 #13 by plamzi
Replied by plamzi on topic Websocket Proxy

Arynth wrote: I'm still playing around to see what I can figure out. I couldn't get the proxy to work at all, either way. I did download this, and got it working on my local machine:

github.com/dannytatom/muddy

Still trying to see if I can make it work on the server side, though.


That link seems to be to a server that uses node.js. Did you figure out a way to install it locally? (I believe you can.)

Using the site proxy seems pretty fast me for your game, so I wouldn't worry about a websocket proxy unless you're planning your own custom web app.

Please Log in or Create an account to join the conversation.

More
15 Aug 2013 19:43 #14 by Lyanic
Replied by Lyanic on topic Websocket Proxy
It's so odd reading a semi-technical discussion thread about something going on with my own game, that I'm almost completely unaware of. Alas, I am too busy with work...

Please Log in or Create an account to join the conversation.