You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Alerts
File Explorer
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
Source
Go
Version published
Created
Source

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