7 lines
294 B
JavaScript
7 lines
294 B
JavaScript
import * as AbsintheSocket from "@absinthe/socket";
|
|
import { createAbsintheSocketLink } from "@absinthe/socket-apollo-link";
|
|
import { Socket as PhoenixSocket } from "phoenix";
|
|
|
|
export default createAbsintheSocketLink(AbsintheSocket.create(
|
|
new PhoenixSocket("ws://localhost:4000/socket")
|
|
));
|