# Pre Emptive Striker plugin development log

**URL:** <https://meta.discourse.org/t/pre-emptive-striker-plugin-development-log/70845>\
**Category:** Development\
**Created:** [27 سبتمبر 2017، 2:21ص UTC](https://meta.discourse.org/t/pre-emptive-striker-plugin-development-log/70845 "2017-09-27T02:21:16Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![deevolution](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deevolution/32/70206_2.png) [@deevolution](https://meta.discourse.org/u/deevolution)\
**Post date:** [1 أكتوبر 2017، 9:24م UTC](https://meta.discourse.org/t/pre-emptive-striker-plugin-development-log/70845/8 "2017-10-01T21:24:33Z")

</div>

> [@angus](#):
>
> The composer is already sending the raw text of a post being composed to the server every 2 seconds.

That’s perfect! Thanks for pointing that out. I believe I have found the draft mechanism under jsapp/models/draft.js.es6. Looks like there are a get and a get\_local method - both require a key. My question now is should I call that method every 2 seconds or is there an event broadcaster that I can listen to? I guess that would probably require WebSockets.

I’ll download and install the akismet plugin today and have a look around and see how they get comments from the composer and process it.

[edit]  
I need to:

1. Determine when the user has started a new composition or opened a saved draft
2. poll their draft every 2 seconds
3. analyze the draft with PAPI
4. use JIT notifications to warn the user about toxicity
5. determine when the user has deleted their draft or published it so that the plugin can stop polling the composer.

---

_[View the full topic](https://meta.discourse.org/t/pre-emptive-striker-plugin-development-log/70845)._
