     }
     // swiftlint:enable function_parameter_count
 
-    func sendStartThreadMessage(socket: WebSocket, userId: String, threadId: String, resFrom: Int) {
-        let message = String.init(format: startThreadMessage, threadId, userId, resFrom)
+    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)
     }
 

                    case .reconnect:    return -100
                    }
                }(),
                completion: completion)
        }
        socket.connect()

{"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,"threadkey":"%@"}},{"ping":{"content":"pf:0"}},{"ping":{"content":"rf:0"}}]
"""
private let postCommentMessage = """
{"type":"postComment","data":{"text":"%@","vpos":%d,"isAnonymous":%@}}
