🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/99designs/gqlgen/_examples/websocket-initfunc/server

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/99designs/gqlgen/_examples/websocket-initfunc/server

v0.0.0-20250507151619-ba79ca98a1bf
Version published
Created

WebSocket Init App

Example server app using websocket InitFunc.

Build and Run the server app

First get an update from gqlgen:

go mod tidy
go get -u github.com/99designs/gqlgen

Next just make the build:

make build

Run the server:

./server 
2022/07/07 16:49:46 connect to http://localhost:8080/ for GraphQL playground

You may now implement a websocket client to subscribe for websocket messages.

FAQs

Package last updated on 07 May 2025

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