You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-27Lines changed: 59 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,50 @@
7
7
</p>
8
8
9
9
<palign="center">
10
-
A `bouncer` is a guy who works outside the night club checking did you pay for the entrance to that particular club. This is a simple but extendable multiple room manager for uWebSockets aka micro web sockets. One person (socket) may be in many clubs (topics) at the same time (from v2.18.0).
10
+
A `bouncer` is a guy who works outside the night club checking did you pay for the entrance to that particular club.
11
+
This library is a plug-and-play static files server + uWebSockets plugin manager with chat example and angular integration. One client (socket) may be subscribed to many topics (rooms) at the same time (since v2.18.0).
11
12
</p>
12
13
13
-
<br/><br/>
14
+
<br/>
14
15
15
16
## Common use cases when you might want to use this library:
16
17
17
-
- You're only able to spawn one process and you'd like to have an app with rooms.
18
-
- At the same time spawn X number of scalable microservices that can connect as websockets.
19
-
- Single process app server like a free `heroku.com` account or similar
20
-
- Building a chat
21
-
- Making node + javascript games
22
-
23
-
## 1. Installation
18
+
- you want a static files server
19
+
- you want to build a websocket chat
20
+
- you want to build any websocket plugin
21
+
- you want it on a single process
22
+
- you want easy angular integration
23
+
- you want easy vanilla js integration
24
+
25
+
----
26
+
27
+
<!-- TOC -->
28
+
29
+
1.[Common use cases when you might want to use this library:](#common-use-cases-when-you-might-want-to-use-this-library)
For the few users to have somewhat of a bridge between the [socket-starter](https://github.com/Prozi/socket-starter) library that this library deprecates:
329
361
330
362
- see [shim.js](https://github.com/Prozi/bouncer.js/blob/master/lib/shim.js)
331
363
- see [shim.spec.js](https://github.com/Prozi/bouncer.js/blob/master/lib/shim.spec.js)
332
364
333
-
### 9.a What does that shim do?
365
+
### What does that shim do?
334
366
335
367
If you do `shim(plugin)` then your plugin may be in the format of:
336
368
@@ -341,7 +373,7 @@ If you do `shim(plugin)` then your plugin may be in the format of:
0 commit comments