Skip to content

How to initiative to disconnect a client's socket in duplex server side? #36

Closed

Description

@junstor

On the server side with ->setDuplex(true), how can I initiative to disconnect a client's socket?
It seems that I can't get the socket from the HandlerCallback or ConnectionContext directly.

Thanks

Activity

  1. alandau commented on Oct 10, 2014

    @alandau
    Contributor

    This isn't currently possible (as far as I understand), just as it isn't possible in a non-duplex case. You need to ask the client to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions