[GH-ISSUE #21] Server cli add possibility to manage subscriptions in runtime #9

Closed
opened 2026-05-05 10:56:41 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @mmatczuk on GitHub (May 11, 2017).
Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/21

Server CLI should start a separate HTTP listener and provide a REST api to inspect and manage subscriptions.

Originally created by @mmatczuk on GitHub (May 11, 2017). Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/21 Server CLI should start a separate HTTP listener and provide a REST api to inspect and manage subscriptions.
Author
Owner

@codeskyblue commented on GitHub (Sep 23, 2017):

How about

server.OnSubscribe = func(client SomeType) bool {
    return true
}
<!-- gh-comment-id:331611516 --> @codeskyblue commented on GitHub (Sep 23, 2017): How about ```go server.OnSubscribe = func(client SomeType) bool { return true } ```
Author
Owner

@mmatczuk commented on GitHub (Sep 27, 2017):

@codeskyblue it's too simplistic, the library actually supports all this inducing client forced disconnects but it's not exposed in the API.

<!-- gh-comment-id:332613450 --> @mmatczuk commented on GitHub (Sep 27, 2017): @codeskyblue it's too simplistic, the library actually supports all this inducing client forced disconnects but it's not exposed in the API.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/go-http-tunnel#9
No description provided.