
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@jamsocket/javascript
Advanced tools
JavaScript/TypeScript, and React libraries for interacting with session backends and the Jamsocket platform.
JavaScript/TypeScript, and React libraries for interacting with session backends and the Jamsocket platform.
npm install @jamsocket/javascript
import { init } from '@jamsocket/javascript/server'
const spawnBackend = init({
account: '[YOUR ACCOUNT]',
token: '[YOUR TOKEN]',
service: '[YOUR SERVICE]'
})
// this spawns a backend via the Jamsocket API and returns a URL you can
// use to connect to your backend - or pass the spawnResult to a SessionBackendProvider
// and use Jamsocket's React hooks to interact with your session backend
const spawnResult = await spawnBackend()
// you may also pass in any of the following spawn options
// learn more about spawn options at https://docs.jamsocket.com/api-docs/#spawn-a-service
const spawnResult = await spawnBackend({
lock: 'my-lock',
tag: 'my-tag',
env: { MY_ENV_VAR: 'foo' },
gracePeriodSeconds: 300,
requireBearerToken: true
})
import { SessionBackendProvider } from '@jamsocket/javascript/react'
// wrap a component in a SessionBackendProvider so the child components
// can use Jamsocket hooks for interacting with the session backend (like useEventListener, useSend, etc)
<SessionBackendProvider spawnResult={spawnResult}>
<MyComponent />
</SessionBackendProvider>
import { useEventListener, useReady, useSend } from '@jamsocket/javascript/react'
function MyComponent() {
const sendEvent = useSend()
function onMouseMove() {
// send an event message to your session backend over websockets
sendEvent('some-event', someValue)
}
useEventListener('another-event', (args) => {
// do something when receiving an event message from your session backend...
})
}
FAQs
JavaScript/TypeScript, and React libraries for interacting with session backends and the Jamsocket platform.
The npm package @jamsocket/javascript receives a total of 2 weekly downloads. As such, @jamsocket/javascript popularity was classified as not popular.
We found that @jamsocket/javascript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.