                 socket: socket,
                 userId: userId,
                 threadId: threadId,
-                resFrom: resFrom)
+                resFrom: resFrom,
+                threadKey: threadKey)
         case .disconnected(_, _):
             log.debug("disconnected")
         case .text(let text):

{"type":"pong"}
"""
private let startThreadMessage = """
[{"ping":{"content":"rs:0"}},{"ping":{"content":"ps:0"}},{"thread":{"thread":"%@","version":"20061206","user_id":"%@","res_from":%d,"with_global":1,"scores":1,"nicoru":0}},{"ping":{"content":"pf:0"}},{"ping":{"content":"rf:0"}}]
"""
private let postCommentMessage = """
{"type":"postComment","data":{"text":"%@","vpos":%d,"isAnonymous":%@}}

    }
    // swiftlint:enable function_parameter_count

    func sendStartThreadMessage(socket: WebSocket, userId: String, threadId: String, resFrom: Int, threadKey: String) {
        let message = String.init(format: startThreadMessage, threadId, userId, resFrom, threadKey)
        socket.write(string: message)
    }

