mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-04-02 18:03:43 +00:00
Add errorType
This commit is contained in:
parent
9cd25d4f53
commit
fb1df125f5
@ -73,7 +73,7 @@ type ChatClient* = ref object
|
||||
# Constructors
|
||||
#################################################
|
||||
|
||||
proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: string = "default"): Result[ChatClient, string] =
|
||||
proc newClient*(ds: WakuClient, ephemeral: bool = true, installation_name: string = "default"): Result[ChatClient, ErrorType] =
|
||||
## Creates new instance of a `ChatClient` with a given `WakuConfig`.
|
||||
## A new installation is created if no saved installation with `installation_name` is found
|
||||
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
type MessageId* = string
|
||||
type Content* = seq[byte]
|
||||
type ErrorType* = string
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user