![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
testsuckit
Advanced tools
This Websuckit client library supports web browsers and Node.js
For tutorials and more in-depth information about websuckit Channels, visit our official docs.
The following topics are covered:
If you're using websuckit Channels on a web page, you can install the library via:
You can use any NPM-compatible package manager, including NPM itself and Yarn.
yarn add @websuckit/js
Then:
import websuckit from '@websuckit/js';
Or, if you're not using ES6 modules:
const websuckit = require('@websuckit/js');
<script src="https://unpkg.com/@websuckit/js@0.0.7/dist/websuckit.umd.js"></script>
Having installed @websuckit/js
via an NPM-compatible package manager, run:
import websuckit from '@websuckit/js';
const ws = new Websuckit({
userId: USER_ID,
accessKey: ACCESS_KEY,
publicKey: PUBLIC_KEY,
})
You can get your USER_ID
, ACCESS_KEY
and PUBLIC_KEY
from the websuckit dashboard.
const channelResponse = ws.createChannel({
channel: "channel_name", // channel should be a slug e.g test-channel
})
// Expected response
// {
// channel: {
// id: string;
// name: string;
// pass_key: string;
// user_id: string;
// created_at: string;
// updated_at: string;
// }
// }
const channelResponse = ws.getChannel({
channelName: "channel_name",
})
// Expected response
// {
// id: string;
// name: string;
// pass_key: string;
// user_id: string;
// created_at: string;
// updated_at: string;
// }
const channelResponse = ws.getChannels({
page: "0", // page is 0 indexed
per_page: "10",
search_key: "channel_name"; // (optional) search channels by channel name
})
// Expected response
// {
// id: string;
// name: string;
// pass_key: string;
// user_id: string;
// created_at: string;
// updated_at: string;
// }[]
const channelResponse = ws.getOrCreateChannel({
channelName: "channelName", // channel should be a slug e.g test-channel
})
// Expected response
// {
// id: string;
// name: string;
// pass_key: string;
// user_id: string;
// created_at: string;
// updated_at: string;
// }
const channelResponse = ws.getOrCreateChannel({
channelId: "<CHANNEL_UUID>",
channel: "channel_name"
regenerate_pass_key: false; // (optional) If regenerate_pass_key is true the channel passkey will be regenerated
})
// Expected response
// {
// channel: {
// id: string;
// name: string;
// pass_key: string;
// user_id: string;
// created_at: string;
// updated_at: string;
// }
// }
const channelResponse = ws.getOrCreateChannel({
channelId: "<CHANNEL_UUID>",
})
// Expected response
// string
It is possible to access a channel websocket URL by channel name, through the getConnectionUrl
function:
const connectionUrl = ws.getConnectionUrl({
channelName: CHANNEL_NAME,
channelPassKey: CHANNEL_PASSKEY,
})
// The expected return of the connectionUrl is a websocket connection e.g wss://backend.websuckit.com/e762eaad-397b-4af8-9376-a8eff2731966/bright/{encrypted_token}
channelName
- name of channelchannelPassKey
- channel passkeyyarn test
yarn install
yarn dev
yarn build && cp package.json ./dist && cd dist && yarn link
in the root directory.cd ../example && yarn link "@websuckit/js"
FAQs
testsuckit Javascript library for browser and nodejs
We found that testsuckit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.