Express integration
dazhbog opened this issue · comments
Hi there,
Quick question.
How do I properly integrate tty.js with the express listener. Do I always need to have two servers/listeners?
Can I have the terminal appear if the user navigates to /foo (express will handle the /foo and internally point to the tty.js?)
Some simple code would be awesome!
Thanks!
hi
i have a working integration in express
its tricky because you need to integrate socket.io with express. the tricky part is to get the authentification and session handling running. if you dont need authentification its easy but i highly recommend security.
refer to
https://github.com/soliton4/nodeMirror
file: src/server/server.js
its one of the more messy files so i appologize but it works ;-)
sol