MCPcopy Create free account
hub / github.com/code-dot-org/code-dot-org / create

Function create

apps/src/lib/util/PubSubService.js:49–55  ·  view source on GitHub ↗
(pubSubConfig)

Source from the content-addressed store, hash-verified

47 * @returns {IPubSubService}
48 */
49export default function create(pubSubConfig) {
50 if (pubSubConfig.usePusher) {
51 return new PusherService(pubSubConfig.pusherApplicationKey);
52 }
53
54 return new NullService();
55}
56
57/**
58 * Stub implementation of PubSub API.

Callers 15

create_teacherMethod · 0.50
create_sectionMethod · 0.50
create_sectionMethod · 0.50
create_teacherMethod · 0.50
create_sectionMethod · 0.50

Calls

no outgoing calls

Tested by 15

create_sectionMethod · 0.40
setupMethod · 0.40
setupMethod · 0.40
setupMethod · 0.40