Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support connecting to new networks (create network) #51

Open
clue opened this issue Nov 25, 2019 · 1 comment
Open

Support connecting to new networks (create network) #51

clue opened this issue Nov 25, 2019 · 1 comment

Comments

@clue
Copy link
Owner

clue commented Nov 25, 2019

This project current supports accessing networks that have already been created, accessing its messages, connecting and disconnecting and deleting this network.

In the future, we should also support creating a new network. Here's the protocol data dump using https://github.com/clue-labs/quassel-proxy:

Client -> Server
[
    2,
    "2createNetwork(NetworkInfo,QStringList)",
    {
        "UseSasl": false,
        "UseRandomServer": false,
        "UseAutoReconnect": true,
        "UseAutoIdentify": false,
        "UnlimitedReconnectRetries": false,
        "ServerList": [
        {
            "sslVersion": 0,
            "UseSSL": false,
            "UseProxy": false,
            "ProxyUser": null,
            "ProxyType": 1,
            "ProxyPort": 8080,
            "ProxyPass": null,
            "ProxyHost": "localhost",
            "Port": 6661,
            "Password": null,
            "Host": "irc.aniverse.com"
        }
        ],
        "SaslPassword": "",
        "SaslAccount": "",
        "RejoinChannels": true,
        "Perform": [
            ""
        ],
        "NetworkName": "Aniverse",
        "NetworkId": 4294967295,
        "Identity": 1,
        "CodecForServer": null,
        "CodecForEncoding": null,
        "CodecForDecoding": null,
        "AutoReconnectRetries": 20,
        "AutoReconnectInterval": 60,
        "AutoIdentifyService": "NickServ",
        "AutoIdentifyPassword": ""
    },
    []
]
Server -> Client
[
    2,
    "2networkCreated(NetworkId)",
    6
]
@clue
Copy link
Owner Author

clue commented Nov 25, 2019

Also consider supporting updating existing networks, e.g. changing a network address or renaming the network:

Client -> Server
[
    1,
    "Network",
    "1",
    "requestSetNetworkInfo",
    {
        "UseSasl": false,
        "UseRandomServer": false,
        "UseAutoReconnect": true,
        "UseAutoIdentify": true,
        "UnlimitedReconnectRetries": false,
        "ServerList": [
        {
            "sslVersion": 0,
            "UseSSL": true,
            "UseProxy": false,
            "ProxyUser": "",
            "ProxyType": 1,
            "ProxyPort": 8080,
            "ProxyPass": "",
            "ProxyHost": "localhost",
            "Port": 6697,
            "Password": "",
            "Host": "chat.freenode.net"
        }
        ],
        "SaslPassword": "",
        "SaslAccount": "",
        "RejoinChannels": true,
        "Perform": [
            ""
        ],
        "NetworkName": "freenode.net",
        "NetworkId": 1,
        "Identity": 1,
        "CodecForServer": null,
        "CodecForEncoding": null,
        "CodecForDecoding": null,
        "AutoReconnectRetries": 20,
        "AutoReconnectInterval": 60,
        "AutoIdentifyService": "NickServ",
        "AutoIdentifyPassword": "*snip*"
}
]
Server -> Client
[
    1,
    "Network",
    "1",
    "setNetworkName",
    "freenode.net"
]
Server -> Client
[
    1,
    "Network",
    "1",
    "setServerList",
    [
    {
        "sslVersion": 0,
        "UseSSL": true,
        "UseProxy": false,
        "ProxyUser": "",
        "ProxyType": 1,
        "ProxyPort": 8080,
        "ProxyPass": "",
        "ProxyHost": "localhost",
        "Port": 6697,
        "Password": "",
        "Host": "chat.freenode.net"
    }
    ]
]

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

No branches or pull requests

1 participant