# socket-ryan

> websocket buatan ryan wkwkkwkw

Latest version **0.1.4** (published 2023-01-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install socket-ryan
pnpm add socket-ryan
yarn add socket-ryan
bun add socket-ryan
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2023-01-24 |
| First published | 2023-01-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ryanmustofa |
| Maintainers | ryanmustofa |

## Links

- npm: https://www.npmjs.com/package/socket-ryan
- Repository: https://github.com/RyanMustofa/socket-ryan
- Homepage: https://github.com/RyanMustofa/socket-ryan#readme
- Issues: https://github.com/RyanMustofa/socket-ryan/issues
- npm.io page: https://npm.io/package/socket-ryan

## Dependencies (2)

- [jsonfile](https://npm.io/package/jsonfile.md) ^6.1.0
- [socket.io](https://npm.io/package/socket.io.md) ^4.5.4

## Recent versions

- 0.1.4 (latest) — 2023-01-24
- 0.1.35 — 2023-01-23
- 0.1.3 — 2023-01-20
- 0.1.2 — 2023-01-20
- 0.1.1 — 2023-01-20
- 0.1.0 — 2023-01-20

## README

# Socket Express

## Custom Socket with express

this socket is use full for server node js

## Features

- Broadcast outside connection
- Free structure folder express + socket io
- No limit connection

## Installation

SocketRyan requires [Node.js](https://nodejs.org/) v16+ to run.

Before install please create db for application

Install the dependencies and devDependencies and start the server.

```sh
npm install socket-ryan
```

## Usage

Usage Package Socket Ryan for server

Start App:

```js
const WebSocket = require('socket-ryan');
const express = require('express');
const http = require('http');
const app = express();
const server = http.createServer(app);
....

const socket = WebSocket(server);
app.io = socket

// send spesific auth
app.use('/send',(req,res) => {
    let { app } = req
    let send = app.io.sockets.to(// auth).emit('response','tes')
    return res.send({
        send,
        message: 'Websocket Realtime'
    })
})

server.listen(3000,() => {
    console.log('Server has runnng in port 3000')
})
```

SocketRyanClient requires [socket-ryan-client](https://www.npmjs.com/package/socket-ryan-client)

## License

MIT

**Free Software, Hell Yeah!**

---
_Source: https://npm.io/package/socket-ryan · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
