Giter Club home page Giter Club logo

sente-system's Introduction

Sente example app

What is this?

The example app from Sente, but for system (componentized and bootified).

Usage

Fire the Boot pipeline from the command line.

$ boot dev

Then point your browser to http://localhost:3019

sente-system's People

Contributors

danielsz avatar fredzen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sente-system's Issues

No access to server-side sente/make-channel-socket for uid purposes?

I'm trying to set up sente's uids for per-session pushes. Per taoensso/sente#118 (comment)
I'm supposed to add parameters to sente/make-channel-socket. I see where that is on the cljs side, but I can't figure out how to get at it on the clj side.

No matter what I try, uid stays nil.

May I ask how you would modify your sample app to get a uid set?

ETA: Modifying line 101 of sente-system/src/clj/example/my_app.clj to read
(debugf "Unhandled event: %s uid: %s session: %s" event uid session)
shows that the session is being set but the uid is nil. I think it should at least be the sente default?

Stopping system throws an error

Hi,

When I try to stop the system, I'm seeing:

[server-loop] ERROR - increase :queue-size if this happens often
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@293946d9 rejected from java.util.concurrent.ThreadPoolExecutor@743088b[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 465]

This may be related to this issue that I also commented on. Do you have any ideas what might be causing this?

Thanks.

Updates available

Hi again

I wanted to use this with a recent version of Sente, so I ported the example. Then I did some more component-izing, because I didn’t really like the idea of the server accesing the system through a global var. Only then did I discover that this project had been deprecated in favor of system-websocket.

Anyway, here are the changes I made to sente-system:

  1. Added a deprecation notice to the README file
  2. Re-synced with the upstream demo from Sente
  3. Componentized the server

Would you be interested in me issuing a pull-request for either of these?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.