Skip to content

What type of interface do we want to implement? #2

Closed
@mjohnson9

Description

@mjohnson9

We have a choice as to what type of interface we'd like to implement, with each having its pros and cons. I'd like to discuss that here.

The choices so far seem to be:

I personally support the idea of creating an interface very similar to net.TCPConn. After all, a TCP connection is conceptually very, very similar to a WebSocket. The primary advantage of this would be that once gopherjs/gopherjs#89 is resolved, WebSocket would be able to be used in the various libraries that desire a net.Conn. The disadvantage is, of course, that we're significantly straying from the underlying interface.

@shurcooL What do you think?

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