Socket
Book a DemoInstallSign in
Socket

asteroid-immutable-collections-mixin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asteroid-immutable-collections-mixin

Use Immutable collection in asteroid

3.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Coverage Status

asteroid-immutable-collections-mixin

A mixin to stores collections published by the server into an immutable map.

Install

npm install --save asteroid-immutable-collections-mixin

Development environment setup

After cloning the repository, install npm dependencies with npm install. Run npm test to run unit tests, or npm run dev to have mocha re-run your tests when source or test files change.

Usage

import {createClass} from "asteroid";
import immutableCollectionMixin from "asteroid-immutable-collections-mixin";

const Asteroid = createClass([asteroidImmutableMixin]);

const asteroid = new Asteroid({
    endpoint: "ws://localhost:3000/websocket"
});

// Somewhere in your code:
import {Map} from "immutable";

// Use real-time collections
asteroid.subscribe("collection-name");

// Collection is an immutable map
const collection = asteroid.collections.get("collection-name") || Map();

API

getServiceConfig(providerName)

This method is to use this mixin with the asteroid-oauth-mixin.

Arguments
  • providerName string required: the provider name with whom you want to login with Oauth.
Returns

An object that contains the clientId, the consumerKey or the appId that is used by the asteroid-oauth-mixin.

Keywords

ddp

FAQs

Package last updated on 26 Apr 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.