Lukket

Golang - fiber GraphQL subscriptions

I am struggling with a piece of code that uses gqlgen and go fiber to create subscriptions.

This should solve it but I can't implement it

[login to view URL]

I am getting this error message where the http responder needs to be upgraded to use sockets.

unable to upgrade *[login to view URL] to websocket websocket: response does not implement [login to view URL]:

func graphqlServer() [login to view URL]

srv := [login to view URL]([login to view URL]([login to view URL]: &[login to view URL]))

[login to view URL]([login to view URL]

KeepAlivePingInterval: 5 * [login to view URL],

Upgrader: [login to view URL]

CheckOrigin: func(r *[login to view URL]) bool

return true

)

[login to view URL]([login to view URL])

[login to view URL]([login to view URL])

[login to view URL]([login to view URL])

[login to view URL]([login to view URL])

[login to view URL]([login to view URL])

Evner: Golang

Om arbejdsgiveren:
( 24 bedømmelser ) London, United Kingdom

Projekt ID: #32742082

1 freelancer byder i gennemsnit $15 på dette job

zeruyaemail

Hello, I’m currently working as a Golang developer, let’s take a closer look at the requirements. Then we can make a decision that will benefit both of us.

$15 USD / time
(0 bedømmelser)
0.0