1.1.4 • Published 2 years ago

sse-mock v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

sse-mock

Prerequisites

  1. Node.js LTS

Get Started

npm install ssr-mock

add the package in webpack's plugins

sse

import WebpackSsePlugin from 'sse-mock';

...

const webpackSsePlugin = new WebpackSsePlugin({
    port: 8844, // sse server port
    time: 4000, // mock rotation interval
    data: 'hhh', // mock data
});

ssr

const webpackSsePlugin = new WebpackWsPlugin({
    port: 8088, // sse server port
    time: 4000, // mock rotation interval, not required
    data: ['xxxx', 'yyyy', 'zzzz'], // mock data list, will return random item once
});
1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago