Skip to content

Example client doesn't compile #31

@gradha

Description

@gradha

The example at http://niv.github.io/websocket.nim/docs/0.1.1/websocket/client.html is missing a very important first line import websocket/client. After adding this line, Nim 0.18.0 still won't compile it:

/Users/gradha/.nimble/pkgs/websocket-0.2.1/websocket/shared.nim(87, 49) template/generic instantiation from here
/Users/gradha/.nimble/pkgs/websocket-0.2.1/websocket/shared.nim(130, 14) Error: type mismatch: got <byte> but expected 'int'

I see the git repository is at 0.2.3, so I tried with #head but then there is a missing symbol:

/Users/gradha/.nimble/pkgs/websocket-#head/websocket/client.nim(47, 30) template/generic instantiation from here
/Users/gradha/.nimble/pkgs/websocket-#head/websocket/client.nim(46, 23) Error: undeclared identifier: 'newContext'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions