https://github.com/gilcierweb/simple-realtime-message
Simple Realtime Message - Rails Nodejs Socket.io
https://github.com/gilcierweb/simple-realtime-message
nodejs real-time realtime realtime-messaging realtime-socket ruby ruby-on-rails socket-io
Last synced: 12 months ago
JSON representation
Simple Realtime Message - Rails Nodejs Socket.io
- Host: GitHub
- URL: https://github.com/gilcierweb/simple-realtime-message
- Owner: gilcierweb
- License: mit
- Created: 2016-01-24T02:39:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T06:25:11.000Z (almost 7 years ago)
- Last Synced: 2025-04-07T14:38:10.288Z (about 1 year ago)
- Topics: nodejs, real-time, realtime, realtime-messaging, realtime-socket, ruby, ruby-on-rails, socket-io
- Language: Ruby
- Size: 3.07 MB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# utf-8-validate
[](https://travis-ci.org/websockets/utf-8-validate)
WebSocket connections require extensive UTF-8 validation in order to confirm to
the specification. This was unfortunately not possible in JavaScript, hence the
need for a binary addon.
As the module consists of binary components, it should be used an
`optionalDependency` so when installation fails, it doesn't halt the
installation of your module. There are fallback files available in this
repository. See `fallback.js` for the suggest fallback implementation if
installation fails.
## Installation
```
npm install utf-8-validate
```
## API
In all examples we assume that you've already required the mdoule as
followed:
```js
'use strict';
var isValid = require('utf-8-validate').isValidUTF8;
```
The module exposes 1 function:
#### isValidUTF8
Validate if the passed in buffer contains valid UTF-8 chars.
```js
bu.isValidUTF8(buffer);
```
## License
MIT