Araq / ormin

Ormin -- An ORM for Nim.
MIT License
152 stars 18 forks source link

Type mismatch in websocket client #16

Closed kidandcat closed 4 years ago

kidandcat commented 4 years ago

Running the chat example I get this error:

C:\Users\jairo\.nimble\pkgs\websocket-0.4.0\websocket\client.nim(106, 34) Error: type mismatch: got <userAgent: string, sslContext: SslContext>
but expected one of:
proc newAsyncHttpClient(userAgent = defUserAgent; maxRedirects = 5;
                       sslContext = getDefaultSSL(); proxy: Proxy = nil): AsyncHttpClient
  first type mismatch at position: 2
  required type for sslContext: SSLContext
  but expression 'sslContext = sslContext' is of type: SslContext

expression: newAsyncHttpClient(userAgent = userAgent, sslContext = sslContext)
Nim Compiler Version 1.0.99 [Windows: amd64]
Compiled at 2019-10-18
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: 832b0a0232e610c1935aaf6ce0b45f69199f8a19
active boot switches: -d:release
kidandcat commented 4 years ago

The issue is in the websocket repo, I've opened the issue there, but this makes me wonder why don't you use treeform/ws?

Araq commented 4 years ago

Legacy. :-) I don't mind using something else.