use pluginCallback for SSE
Merge pull request #81 from Trott/sse

use pluginCallback for SSE