mirror of
https://github.com/RustyRaptor/vite-plugin-socket-io.git
synced 2026-12-03 15:35:18 -07:00
update - README.md
This commit is contained in:
1 parent
cfce38f4b0
commit
0c055ca276
2 files changed
+8
-8
No files matched your search
@@ -5,14 +5,14 @@ Plugin to add [socket.io](https://socket.io/) to a Vite server
|
||||
|
||||
## Installation
|
||||
```
|
||||
npm i -D @bobthered/vite-plugin-socket.io
|
||||
npm i -D vite-plugin-socket.io
|
||||
```
|
||||
|
||||
## Basic Usage
|
||||
```js
|
||||
// vite.config.js
|
||||
|
||||
import vitePluginSocketIO from '@bobthered/vite-plugin-socket.io'
|
||||
import vitePluginSocketIO from 'vite-plugin-socket.io'
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
@@ -32,7 +32,7 @@ Function to run containing socket.io listener and emitters. Check docs [here](.
|
||||
```js
|
||||
// vite.config.js
|
||||
|
||||
import vitePluginSocketIO from '@bobthered/vite-plugin-socket.io'
|
||||
import vitePluginSocketIO from 'vite-plugin-socket.io'
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
const socketEvents = (io, socket) => {
|
||||
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@bobthered/vite-plugin-socket.io",
|
||||
"version": "1.0.1",
|
||||
"name": "vite-plugin-socket-io",
|
||||
"version": "1.0.2",
|
||||
"description": "Plugin to add socket.io to a Vite server",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/bobthered/vite-plugin-socket.io.git"
|
||||
"url": "git+https://github.com/vite-plugin-socket-io/vite-plugin-socket-io.git"
|
||||
},
|
||||
"keywords": [
|
||||
"vite-plugin",
|
||||
@@ -20,9 +20,9 @@
|
||||
"author": "Bob McAleavey <bobmcaleavey@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/bobthered/vite-plugin-socket.io/issues"
|
||||
"url": "https://github.com/vite-plugin-socket-io/vite-plugin-socket-io.git/issues"
|
||||
},
|
||||
"homepage": "https://github.com/bobthered/vite-plugin-socket.io#readme",
|
||||
"homepage": "https://github.com/vite-plugin-socket-io/vite-plugin-socket-io.git#readme",
|
||||
"dependencies": {
|
||||
"socket.io": "^4.4.0"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user