Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple instances? #31

Open
a12one opened this issue Jun 10, 2020 · 8 comments
Open

Support for multiple instances? #31

a12one opened this issue Jun 10, 2020 · 8 comments

Comments

@a12one
Copy link

a12one commented Jun 10, 2020

Thanks for making gwsocket, it is a very cool and useful project! At the moment I understand we support 1 instance /tmp/wspipein.fifo -> terminal.html, is it possible we can support multiple instances as in we have

/tmp/wspipein-1.fifo -> terminal-1.html
/tmp/wspipein-2.fifo -> terminal-2.html
/tmp/wspipein-3.fifo -> terminal-3.html

with only have 1 gwsocket process running in the background?

@allinurl
Copy link
Owner

allinurl commented Jun 10, 2020

Good question, currently you would need to run multiple gwsocket instances using a different pipe. I'd need to look into having the ability to run one process but multiple pipes.

@allinurl
Copy link
Owner

allinurl commented Jun 10, 2020

By the way, I think this would be really useful for goaccess as it has been requested there as well.

@a12one
Copy link
Author

a12one commented Jun 10, 2020

it would be a great enhancement, thank you again for looking into this!

Also, may I ask if we can have the reference HTML/JS code that is demonstrated in the gif on the homepage which renders the WebSocket output perfectly? @allinurl thanks a lot!

@allinurl
Copy link
Owner

allinurl commented Jun 12, 2020

Now, If you are looking to have your full terminal output displayed in the browser, you need to load hterm.js. You can get a copy and the example here.

@allinurl
Copy link
Owner

allinurl commented Jun 12, 2020

Here's the index file, just press Ctrl+u to see the code.

@tuaris
Copy link

tuaris commented Jul 10, 2020

This is somewhat related... I created a FreeBSD port that includes a rc.d script that also supports the ability to run multiple instances, configurable via .conf files. It should make it's way into the official ports tree soon.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247884

The port can be found at: https://github.com/tuaris/freebsd-gwsocket

@allinurl
Copy link
Owner

allinurl commented Jul 16, 2020

@tuaris Thanks for sharing that!

@adriaandegroot
Copy link

adriaandegroot commented Aug 15, 2020

Date: Sat Aug 15 05:30:41 2020
New Revision: 544909

Log:
New port: www/gwsocket Simple WebSocket Server

(That's "it has now landed in FreeBSD ports")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants