xChat documentation

Ever get REALLY close to first on the userlist, but end up getting disconnected for seemingly no reason? Want to increase your average session times? Need chat on your computer and smartphone at the same time? Then xChat is for you! xChat is a WebSocket caching server; that is, it keeps a chat session open for you while you go about your day. You can refresh, open as many windows as you want, it doesn't matter. You keep your place on the user list, and you get the same messages at the same time. Want to try it out? Then read the rest of this document to find out how!

Notice: xChat logs the IP address you connect from for security reasons. Your IP will never be publicly released, shared with other people, etc. If you feel this is an invasion of your privacy, you can simply refuse to use xChat.

Another notice: xChat is not affiliated in any way, shape, or form with SmileBASIC Source's developers or staff members.

Installation instructions:

  1. Navigate to http://smilebasicsource.com/userhome.
  2. Add " socketOverload" (everything between the quotes, including the space but not including the quotes) to the end of the Special field. Click Update.
  3. Go to http://smilebasicsource.com/editor?type=chat.
  4. Add this to the end of the editor:
    polyChat = new PolyChat(logger);
    polyChat.webSocketURL = "ws://oboy.smilebasicsource.com:49001";
    var connect = function(){ 
        polyChat.onClose = onClose;
        polyChat.onError = alert.bind(window);
        polyChat.onMessage = onMessage;
        polyChat.start(useruid, auth);
        activePingId = window.setInterval(activePing, 45000);
        window.addEventListener('focus', activePing);
    startChatConnection = connect;
  5. Click Save.
  6. Refresh your chat window.

If these steps were done correctly, chat should load the same as always. You're now using xChat! Try it by opening another chat tab. It should load the messages, and your other tab should still be connected.