Note that there are some explanatory texts on larger screens.

plurals
  1. POSafe approach to doc-sharing/chat app?
    primarykey
    data
    text
    <p>A friend of mine and I have been using Google Docs for a while but it seems to be in the process of not supporting her browser anymore so as a fun project I thought I would try to imitate its functionality myself.</p> <p>So far I've built a working facsimile in Codeigniter (PHP) that works fine on my machine locally; however, I'm trying to figure out if it is the most effective approach/safest to unleash on other people. (Bear in mind that this is not meant to be a public service; just for use by mostly 2 people, maybe 3-4 at most.)</p> <p>Each page of the app has a chat room and a view for whatever the current document is; these are refreshed independently. The chat room basically pulls from a .txt file which is updated every time the user submits a message; the chat refereshes via a JQuery AJAX call twice per second. (So far I'm not bothering with trying to note when a user left the chat, though I assume that would take a separate poll.)</p> <p>The document view also updates via AJAX, but calling a controller function to ping a document MySQL database instead; this call happens once per second as well as any time a user updates the document.</p> <p>Clearly this is going to have to be on a hosting plan that can accomodate traffic from the regular Javascript calls, but that aside, is this an acceptable way to approach the problem? Will it cause undue strain on the client side (or on the server)? Is there a better way? I'm very very self-taught, and while I'm able to make something that works, I would love to have some confirmation that I'm not taking the wrong approach.</p> <p>Thanks! Hopefully this question makes sense; glad to elaborate if necessary.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload