Skip to content

Commit

Permalink
chore: skip epoll if not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
jensneuse committed Oct 17, 2024
1 parent 898d704 commit b0bd97a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func (c *subscriptionClient) SubscribeAsync(ctx *resolve.Context, id uint64, opt
if options.UseSSE {
return c.subscribeSSE(ctx.Context(), c.engineCtx, options, updater)
}
if c.epoll == nil {
return c.subscribeWS(ctx.Context(), c.engineCtx, options, updater)
}

if strings.HasPrefix(options.URL, "https") {
options.URL = "wss" + options.URL[5:]
Expand Down

0 comments on commit b0bd97a

Please sign in to comment.