Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Svelte Websocket Store | 259 | 2 | 2 days ago | 40 | August 19, 2022 | 12 | bsd-2-clause | JavaScript | ||
svelte store with a websocket backend | ||||||||||
Webim | 104 | 4 years ago | PHP | |||||||
基于laravel+swoole的在线聊天室 | ||||||||||
Mysql Notification | 84 | 9 months ago | 5 | gpl-3.0 | TypeScript | |||||
Example of a user defined function (UDF) in MySQL | ||||||||||
General | 30 | 21 days ago | Python | |||||||
General is a web application development framework | ||||||||||
Stimulus_reflex_table_filter | 9 | 3 years ago | 5 | mit | Ruby | |||||
Demo app showing how you can filter a table in a Ruby on Rails app with StimulusReflex | ||||||||||
Howsyourday | 3 | a year ago | mit | |||||||
A social Media platform to share about your Day. | ||||||||||
Ameritrade Interface | 3 | 2 years ago | 1 | mit | Python | |||||
Ameritrade Python interface to handle Authentication, Websocket streaming subscriptions and API requests | ||||||||||
Sportsball | 2 | 7 years ago | mit | PHP | ||||||
Sports realtime API delivered over websockets, created for Web Research unit | ||||||||||
Reql Admin | 2 | 3 years ago | JavaScript | |||||||
A beautiful administration GUI for RethinkDB. | ||||||||||
Erlstore | 2 | 5 years ago | 2 | mit | Erlang | |||||
Erlstore |
Svelte store with a websocket backend
import websocketStore from "svelte-websocket-store";
const initialValue = { };
export const myStore = websocketStore("wss://mydomain.com/ws1", initialValue, ['option 1', 'option 2']);
// send JSON to websocket server
$myStore = { content: "to be saved", other_values: "all" };
// receive JSON from server (push)
let response = $myStore;
Create a writable store based on a web-socket. Data is transferred as JSON. Keeps socket open (reopens if closed) as long as there are subscriptions.
url
string the WebSocket urlinitialValue
any store value used before 1st. response from server is presentsocketOptions
Array<string> transparently passed to the WebSocket constructorReturns Store
With npm do:
npm install svelte-websocket-store
With yarn do:
yarn add svelte-websocket-store
export BROWSER=safari|chrome|...
npm|yarn test
BSD-2-Clause